Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Frame/IFrame name property

Frame/IFrame name property

Frame/IFrame Object Reference Frame/IFrame Object


Definition and Usage

The name property can set or return the value of the name attribute of the frame/iframe element.

Syntax

frameObject.name=

name

or

iframeObject.name=

name


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name property.


Example

Example

Return the value of the name property:

document.write(document.getElementById("myframe").name);

Try it »


Frame/IFrame Object Reference Frame/IFrame Object