Window.name

  • Revision slug: DOM/window.name
  • Revision title: window.name
  • Revision id: 136218
  • Created:
  • Creator: JesseW
  • Is current revision? No
  • Comment

Revision Content

Summary

Gets/sets the name of the window.

Syntax

string = window.name
 window.name = string

Example

window.name = "lab_view";

Notes

The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have names.

Specification

DOM Level 0. Not part of specification.

Revision Source

<p>
</p>
<h3 name="Summary">Summary</h3>
<p>Gets/sets the name of the window. 
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval"><i>string</i> = window.name
 window.name = <i>string</i>
</pre>
<h3 name="Example">Example </h3>
<pre class="eval">window.name = "lab_view";
</pre>
<h3 name="Notes">Notes </h3>
<p>The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have names. 
</p>
<h3 name="Specification">Specification </h3>
<p>DOM Level 0. Not part of specification.
</p>
Revert to this revision