Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: close window not working in frame??


Message #1 by philip.moh@a... on Mon, 17 Sep 2001 11:50:55 +0800
saying 'close()' is invoking the close method of the window object.  If your
window is in a frameset, then the individual window cannot be closed by
itself.  If you want to close the whole window, then you need to reference
the topmost window in the hierarchy, by saying 'top.close()'

-----Original Message-----
From: philip.moh@a... [mailto:philip.moh@a...]
Sent: 17 September 2001 06:40
To: javascript
Subject: [javascript] close window not working in frame??


I used the following command to close to the window, it works fine. But one
I put the page into the frame, the command doesn't work at all. My page is
save in .asp. Anyone experience this?? Please help. Thanks

<A HREF="javascript:close();">Close Window</A>

  Return to Index