PDA

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



azaral
09-28-2004, 02: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.

gigabites
09-28-2004, 11: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... :)