name attribute | name property

all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

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

iframe

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.