[thelist] close window js

Vincent Birebent vincent.birebent at laposte.net
Fri Jun 1 10:06:55 CDT 2001


At 07:59 01/06/2001 -0700, you wrote:
>Recently on another list, someone asked for a close window javascript. Here
>are two answers that came back. Could someone tell me if both are correct?
>Do they both accomplish the same thing?
>
><.a href="javascript:void" onclick='window.close()'>Close Window</a>
>
><.A HREF="javascript:void(" ")" ONCLICK="self.close();return false;"> Close
>Window</A>

non-answer :

Try this too !

<a href="javascript:window.close();">Close Window</a>

<a href="#" Onclick="window.close(); return 0;">Close Window</a>








More information about the thelist mailing list