javascript document parentWindow
@March 15, 2008, 1:22 a.m.
parentWindow | Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a |
|
Read-only |
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. |
|
Example | |
var siblingCount = document.parentWindow.frames.length; |
|
Value | |
Default | |
window object. |
Permanent URL:
http://javascript.gakaa.com/document-parentwindow.aspx
Hi
parentWindow.frames.length Not working in Chrome and Firefox
Please Reply How to Use in FireFox & Chrome
Reply onto ajitonmail@gmail.com
parentWindow.frames.length Not working in Chrome and Firefox
Please Reply How to Use in FireFox & Chrome
Reply onto ajitonmail@gmail.com
Ajit
- 2009-07-27
Powered by Linode.
Yes, parentWindow is IE only.
For no-IE browsers, would you please try window.parent instead?
It may work.