[thelist] close window js

sfmalo sfmalo at email.msn.com
Fri Jun 1 10:01:00 CDT 2001


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>

Sharon
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com





More information about the thelist mailing list