| Author |
windows.close() stopped working. Why?
|
Darrin Smith
Ranch Hand
Joined: Aug 04, 2003
Posts: 276
|
|
I call windows.close() when the user clicks a button to close the browser. This works just great until my web page is embedded in a frame. Once that happens, the code gets called, but the browser does not close (no message is displayed warning me about the close either). Is there a way to close the browser from within a frame? Thanks.
|
 |
Darrin Smith
Ranch Hand
Joined: Aug 04, 2003
Posts: 276
|
|
Hold on...found something: http://www.codelifter.com/main/tips/tip_017.shtml I'll give that a try.
|
 |
Darrin Smith
Ranch Hand
Joined: Aug 04, 2003
Posts: 276
|
|
Yup...that did it. Instead of window.close() you need to call top.window.close().
|
 |
 |
|
|
subject: windows.close() stopped working. Why?
|
|
|