View Full Version : OPEN (NEW) WINDOW, then CLOSE (THIS) WINDOW

09-28-2004, 01:22 PM
I'm using a script that opens certain links in a new (popup) window but I'd like to have the window, that does this, close after doing so. anybody got a script that can do that?

bobby g.

09-28-2004, 10:18 PM
Put this hyperlink in Your popup window...

<a href=# onClick="window.close()">close window</a>

If You want the popup window to close automatically after doing something (javascript maybe...), add window.close(); at the end of Your script... :)