TOC PREV NEXT INDEX

domref



name


The name of the current iframe.

Syntax

iframename = iframeElement.name
 

Parameters

iframeName is a string.

Example

i = document.getElementById("main-frame");
 
if (i.name != "main") {
 
  //
 
}
 

Notes

In the HTML, you can set the IFRAME name attribute directly:
<frame name="f1"/> and then refer to that frame in the DOM with window.frames["f1"].

Specification

DOM Level 2 -- HTMLIFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX