Javascript Reference
Categories: window

javascript window frameElement

@March 25, 2009, 3:41 a.m.
frameElement Firefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

 

Read-only  

If the current window is a member of a frameset or is an iframe, the frameElement property returns a reference to the frame or iframe element object (distinct from the frame-as-window object). Security restrictions, however, can impede script access to this property.

 
Example
 
var frameID = window.frameElement.id;
 
Value

frame or iframe object reference; or null.

 
Default

null.


Powered by Linode.