Frame.window

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

							frame.window

Description

The window property of the Frame object is used to reference the current frame. This works the same as using the self property.

Example

Listing 7.287 shows an example of the syntax of the window property.

Listing 7.287 Syntax for the window Property
<html>
<title> Example of the window property of the Frame object</title>

<script language="JavaScript">
<!--Hide
//sets focus to the upper frame
document.upper.window.focus();
// End Hide --->
</script>

<frameset rows="100,*">
<frame src="top.html" name=upper>
<frame src="bottom.html" name=bottom>
</frameset>

</html>
							
						

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.