Javascript Reference
Categories: document

javascript document parentWindow

@March 15, 2008, 1:22 a.m.
parentWindow Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a


Returns a reference to the window object (which may be a frame in a frameset) that contains the current document. Use this reference to access the window's properties and methods directly. The returned value is the same as the window reference from the document.

var siblingCount = document.parentWindow.frames.length;

window or frame object reference.


window object.

Hello Ajit,

Yes, parentWindow is IE only.
For no-IE browsers, would you please try window.parent instead?

It may work.
javascript manual - 2009-07-27
parentWindow.frames.length Not working in Chrome and Firefox
Please Reply How to Use in FireFox & Chrome
Reply onto
Ajit - 2009-07-27

Powered by Linode.