Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

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