script for exiting Netscape

Andrew J. Mutch amutch at tln.lib.mi.us
Fri Mar 13 13:59:00 EST 1998


Nancy,

Place the following Javascript in your page code:

For a Text Link
<a href="javascript:window.close()">Exit Netscape</a>

For an Image Link
<a href="javascript:window.close()"><img src="image.gif"></a>

For a Form Button (Those ugly grey buttons)
<FORM>
<INPUT NAME="button" TYPE="button" VALUE="EXIT"
onClick="javascript:window.close()">
</FORM>

Note: On Navigator 4.0, you will be asked to confirm the closing of the
window.  To eliminate this warning requires a signed script.  To learn
more about signed scripts, visit Netscape at:

http://developer.netscape.com/

Andrew Mutch
Northville District Library
Northville, MI

On Fri, 13 Mar 1998, Nancy L. George wrote:

> We would like to develop a Web page with a button patrons can click to exit
> Netscape. Does anyone know of a script or HTML code that will do this?
> Thanks.
> 
> Nancy
> 
> 
> Nancy L. George			 
> Electronic Resources Librarian	
> Salem State College Library	
> 352 Lafayette St.			 
> Salem, MA  01970	
> 
> voice:508-740-7182 
> fax:508-744-6596	
> email:ngeorge at salem.mass.edu or george at noblenet.org		
> 



More information about the Web4lib mailing list