javascript document parentWindow

parentWindow NN n/a IE 4 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

window or frame object reference.

 
Default

window object.


  • Ajit
    #1
    2009-07-27
    [Quote]
    Hi
    parentWindow.frames.length Not working in Chrome and Firefox
    Please Reply How to Use in FireFox & Chrome
    Reply onto ajitonmail@gmail.com
  • javascript manual
    #2
    2009-07-27
    [Quote]
    Hello Ajit,

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

    It may work.
Ajit
javascript manual

566,Nickname,Homepage or email,Comments here,Add comment