Window.name
is one of the predefined property of the global object window
.
Since Stephan Bijzitter wants an answer with more details, here it is.
Section 7.3.1 of the current living HTML standards states that window.name
is a property of the global object window
that returns the name of the window and can be set, to change the name.
The name attribute of the Window object must, on getting, return the current name of the browsing context; and, on setting, set the name of the browsing context to the new value.
The name gets reset when the browsing context is navigated to another origin.
5
solved JavaScript predefined variable “name”