|
April 17, 2000 The name Property Tips: April 2000
Yehuda Shiran, Ph.D.
|
|
With JavaScript we can discover the name of a window through its name property (IE3+, N2+). We can also set the name property of a frame or window (IE3+, N3+). Let's take a look at the following HTML document (showname.html):
Take a look at the following links:
The document showname.html consists of a script that displays the name of the window in an alert dialog box. Go ahead and test these links:
A New Window
The
When working with frames, it's easy to access various levels of the window hierarchy. For more details, refer to Window References (November 7, 1999).
Learn more about windows creation and usage in Tutorial 1, Working with Windows.
People who read this tip also read these tips: Look for similar tips by subject: |