Click to See Complete Forum and Search --> : close window for ns 4.x
coriejconwell
11-19-2003, 10:38 AM
I need to make a button to close windows that works with NS 4.x ... after some research this morning I'm starting to think that it may not be possible... any ideas?
here's a page with relevent code....
http://themissingpiece.com/newmexicodream/chinook.html
many thanks
c
fredmv
11-19-2003, 10:50 AM
This works fine in Netscape 4.7:<a href="#" onclick="window.close();">Close window.</a>
gil davis
11-19-2003, 04:30 PM
Netscape 4 does not support onclick for an <input type="image"> and the default action of that type of button is to submit the form. Use an image link instead.
Instead of:
<form>
<font face="verdana,sans-serif" size=2>
<input type=image SRC="close.gif" VALUE="Close Window" onClick=";top.close()">
</form>
use:
<a href="#" onClick="top.close();return false"><img SRC="close.gif" border=0></a>
BTW, your FONT tag had no closing tag.
coriejconwell
11-19-2003, 11:28 PM
Thank you both!
this has been driving me bats, and it worked like a charm.
Best
corie