Frame.document
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
frame.document
Description
The document property of the Frame object contains information about the current document. The document property is created by the HTML <body> tag and is available in every Frame or Window object. The document property is used to access other aspects of the HTML document.
Example
Listing 7.272 shows how the document property can be used to access document elements within a specific frame. For a more detailed example, see window.document.
Listing 7.272 Accessing the document Property
<script language="JavaScript"> <!-- Hide function getName(){ var name = framename.document.elements[1].name; } // 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.