Click to See Complete Forum and Search --> : closing a browser window


Nulrick
08-26-2003, 03:20 PM
Does anyone know how to make a browser window close upon a click of a button?

I want to make a pop up close once they have made their selection which loads in the main browser window.


thanks!!

pyro
08-26-2003, 03:23 PM
<a href="#" onclick="window.close(); return false;">Close</a>

Nulrick
08-26-2003, 04:10 PM
are you familiar with flash? if so, I'm trying to figure out how to apply your code to actionscript...

thanks!!

Nulrick
08-26-2003, 04:12 PM
Does anyone know how to make a browser window close upon a click of a button?

I want to make a pop up close once they have made their selection which loads in the main browser window.


thanks!!

PeOfEo
08-26-2003, 04:20 PM
Thats java script, you should have specified earlier that you wanted it in flash.

pyro
08-26-2003, 04:23 PM
He didn't specify either. I just took a guess, and got it wrong. Anyway, try this: getURL ("javascript:window.close()")

Mr J
08-26-2003, 05:22 PM
onclick="self.close()"