Frame.name
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
frame.name
Description
The name property of the Frame object represents the name given to a frame as specified from the NAME attribute of the HTML <frame> tag.
Example
In Listing 7.276, the name property is used to inform the user of the active frame.
Listing 7.276 Example of the name Property
<script language = "JavaScript"> <!-- Hide function activeFrame(){ var frameName = window.myframe.name; alert("The active frame is: " + frameName); } // End Hide ---> </script> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.