View Full Version : How to close a window?
CoraLover
03-14-2003, 03:41 PM
Hi, how do u close a window which consists of a FRAME? Ok, i've soemthing like this-> I've a hyperlink in the LEFT FRAME which allows the user to close the entire window.
Skyzyx
03-14-2003, 04:11 PM
It should just be window.close(). Let me know if that doesn'[t work, and I'll try to figure something else out, but it should work.
requestcode
03-14-2003, 04:17 PM
I believe what you want to close the whole window is "parent.window.close()"
If you use window.close() without the parent it will close the frame you are in.
cheesebagpipe
03-14-2003, 09:59 PM
top.close();
Can't 'close' a frame...
CoraLover
03-15-2003, 02:18 AM
I've tried parent.close(); It works.
But i do like to change the message displayed in the dialog box. Is it possible?? I'm using JavaScript.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.