Frame/IFrame nameProperty
Frame/IFrame Object
Definition and Usage
The name property sets or returns the value of the name attribute of the frame/iframe element.
Syntax
frameObject.name=name
or
iframeObject.name=name
or
iframeObject.name=name
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the name property.
Example
Example
Return the value of the name attribute:
document.write(document.getElementById("myframe").name);
Try it Yourself »
Frame/IFrame Object Other Extensions