4 function testFrameElement()
6 var message
= document
.getElementById("message");
7 var element
= window
.frameElement
;
8 var elementID
= element
.getAttribute("id");
9 message
.appendChild(document
.createTextNode("frameElement ID is \"" + elementID
+ "\""));
13 <body onload=
"testFrameElement()">
14 <div id=
"message"></div>