Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

name attribute | name property

Sets or retrieves the frame name.

Syntax

HTML<element name="p" ... >
JavaScript

p = object.name

Property values

Type: String

an arbitrary name used to identify the object.

Remarks

The name property identifies which frame displays the content of a linked document.

Examples

This example uses scripting to set the name property of a frame.


parent.frames[0].name="Left";

This example shows how the name attribute for a window can be persisted in HTML, but only when defined in a frame within a frameSet


<frameset>
	<frame name="Left" src="blank.htm">
	<frame name="Right" src="contents.htm">
</frameset>


See also

frame
frameSet
iframe

 

 

Show:
© 2014 Microsoft