JavaScript predefined variable "name" -
i learning javascript , discovered variable named name, predefined, sitting in global context.
i created new, clear html file (have not written html in it). tested in chrome, opera , firefox, same...
i wonder why that, beyond curiosity, there case when variable assigned value "string", itself, have not touched it. why there? doing?
window.name
1 of predefined property of global object window
.
since stephan bijzitter wants answer more details, here is.
section 7.3.1 of current living html standards states window.name
property of global object window
returns name of window , can set, change name.
the name attribute of window object must, on getting, return current name of browsing context; and, on setting, set name of browsing context new value.
the name gets reset when browsing context navigated origin.
Comments
Post a Comment