August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.name
The name property of an instance of a Window object returns the name of the window. This property contains the name specified when new windows are created using the Window.open() method. In JavaScript 1.0, this property was read only, but this was changed in JavaScript 1.1 so you can assign a name to a window not created with the Window.open() method. This property was tainted in JavaScript 1.1 as well.
Listing 7.554 has a button that launches a second window. The name of the window is written to it using the name property of the Window object.
<html> <head> <script ... |
Read now
Unlock full access