<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- Mode: HTML -*- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5" />
<meta name="TEMPLATEBASE" content="XHTML" />
<meta name="LASTUPDATED" content="12/06/01 09:06:10" />
<title>DOM window Reference</title>
<link rel="StyleSheet" href="document.css" type="text/css" media="screen" />
</head>
<body>
<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="dom_shortTOC.html">
<img src="images/navtoc.gif" width="84" height="23" border="0" alt="TOC" />
</a></td>
<td><a href="dom_el_ref74.html">
<img src="images/navprev.gif" width="81" height="23" border="0" alt="PREV" />
</a></td>
<td><a href="dom_window_refa2.html">
<img src="images/navnext.gif" width="81" height="23" border="0" alt="NEXT" />
</a></td>
<td><a href="dom_shortIX.html">
<img src="images/navidx.gif" width="85" height="23" border="0" alt="INDEX" />
</a></td>
</tr>
</table>
<p>
<img src="images/domref.gif" alt="Put your logo here!" />
</p>
<hr align="left" />
<blockquote>
<h1 id="1011624" class="Title">
<a name="1011624"> </a>DOM window Reference
</h1><hr/>
<p id="1004024" class="Body">
<a name="1004024"> </a>This chapter provides a brief reference for all of the methods, properties, and events available through the DOM <span style="color: #000000; font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">window</span> object.
</p>
<p id="1004025" class="Body">
<a name="1004025"> </a>The <span style="color: #000000; font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">window</span> object represents the window itself. Typically, <span style="color: #000000; font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">window</span> contains the <span style="color: #000000; font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">document</span> as a child (see <a href="dom_doc_ref.html#1022427"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">DOM Document Reference</span></a>), provides access to the <a href="dom_window_ref36.html#1000080"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.navigator</span></a> and <a href="dom_window_ref92.html#1000255"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.screen</span></a> objects for manipulating the browsing environment itself, and provides a number of special properties for accessing the object model below it.
</p>
<h2 id="1004028" class="Heading1NoBreak">
<a name="1004028"> </a>DOM window Interface
</h2>
<p id="1004029" class="Body">
<a name="1004029"> </a>The properties, methods, and event handlers of the <span style="color: #000000; font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">window</span> object are given here.
</p>
<h3 id="1004019" class="Heading2">
<a name="1004019"> </a>Properties
</h3>
<div id="1003752" style="color: #000000; font-size: 7pt; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">
<a name="1003752"> </a>
<table border="1" cellpadding="5" cellspacing="0">
<caption></caption>
<tr>
<td><a name="1014996"> </a><div id="1014996" class="CellBody"><a href="dom_window_refa3.html#999828"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window._content</span></a></div></td>
<td><a name="1014998"> </a><div id="1014998" class="CellBody">Returns a reference to the content element in the current window.</div></td>
</tr>
<tr>
<td><a name="1015003"> </a><div id="1015003" class="CellBody"><a href="dom_window_ref10.html#999996"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.closed</span></a></div></td>
<td><a name="1015005"> </a><div id="1015005" class="CellBody">This property indicates whether the current window is closed or not.</div></td>
</tr>
<tr>
<td><a name="1015010"> </a><div id="1015010" class="CellBody"><a href="dom_window_ref11.html#999999"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.Components</span></a></div></td>
<td><a name="1015012"> </a><div id="1015012" class="CellBody">Returns an array of the <br />components installed in the browser.</div></td>
</tr>
<tr>
<td><a name="1015017"> </a><div id="1015017" class="CellBody"><a href="dom_window_ref13.html#1014632"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.controllers</span></a></div></td>
<td><a name="1015019"> </a><div id="1015019" class="CellBody">Returns the XUL controller objects for the current chrome window.</div></td>
</tr>
<tr>
<td><a name="1015024"> </a><div id="1015024" class="CellBody"><a href="dom_window_ref14.html#1000008"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.crypto</span></a></div></td>
<td><a name="1015026"> </a><div id="1015026" class="CellBody">Returns the browser <span style="color: #000000; font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline">crypto</span> object</div></td>
</tr>
<tr>
<td><a name="1015031"> </a><div id="1015031" class="CellBody"><a href="dom_window_ref15.html#1000011"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.defaultStatus</span></a></div></td>
<td><a name="1015033"> </a><div id="1015033" class="CellBody">Gets/sets the status bar text for the given window.</div></td>
</tr>
<tr>
<td><a name="1015038"> </a><div id="1015038" class="CellBody"><a href="dom_window_ref16.html#1000014"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.directories</span></a></div></td>
<td><a name="1015040"> </a><div id="1015040" class="CellBody">Returns a reference to the directories toolbar in the current chrome.</div></td>
</tr>
<tr>
<td><a name="1015045"> </a><div id="1015045" class="CellBody"><a href="dom_window_ref17.html#1000020"><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">window.document</span></a></div></td>
<td><a name="1015047"> </a><div id="1015047" class="CellBody">Returns a reference to the document that the window contains.</div></td>
</tr>
<tr>
<td><a name="1015052"> </a><div id="1015052" class="CellBody"><a href="dom_window_ref22.html#1000038"><span style="color: #000000; font-style: n
评论0
最新资源