Click to See Complete Forum and Search --> : Close and open


rtatnell
02-07-2003, 01:36 PM
Could someone please provide me with some code that will open a url in a new browser window when the user clicks on the close button on the one currently in view.
Eg
User clicks [X] on Window 1
Closes Window 1
Opens URL in Window 2

Hope you can understand that
Many thanks in advance

khalidali63
02-07-2003, 05:04 PM
implemet onUnload Event,it should it for you.

Ribeyed
02-07-2003, 05:14 PM
hi,
this is a JavaScript question and not an ASP one.

rtatnell
02-08-2003, 01:53 PM
How do i do an onUnload event then?

Nicodemas
02-09-2003, 05:21 AM
In your body tag, put onUnload="what you want to do"

rtatnell
02-09-2003, 06:27 AM
Sorry for being completely retarded, but if i wanted it to open a new window with a web page in it how would i do that?

I really appreciate your help
Thanks