script for exiting Netscape

Trupiano, Anna ATrupiano at city.newport-beach.ca.us
Fri Mar 13 13:44:50 EST 1998


A question I asked before.... This was the response that DOES
work... the only limiting factor is that you can only put the
button on YOUR pages!  Pulled from Web4Lib archives!

At 01:07 PM 6/17/97 -0500, Charles A. Summerhill wrote:

>Anna Trupiano wrote:
>
>> Does anyone know how to go about coding in HTML
>> an logOFF button (i.e. a File Exit in the Netscape
>> Browser)????
>
> Type in the Location/URL field in your Netscape window the following
>command:
>
>javascript:void(window.close())
>
>To make this part of your html page, add the line <A
>HREF="javascript:void(window.close())"><IMG></A> (with the appropriate
>changes). This would provide a button for the user to click to close
the
>window -- this will also exit Netscape if that is the only window open.
>
>I believe that this is the trick you are looking for. BTW, under
>Netscape Communicator v4.0, this is a security risk and has a dialog
box
>pop-up confirming the closure of the window.
>
>Hope this helps.
>
>--
> Charles A. Summerhill
> Network Manager
> Library Learning Resource Center
> University of Arkansas for Medical Sciences
> http://www.librarylrc.uams.edu/
>
>
> ----------
> From: 	Nancy L. George[SMTP:ngeorge at salem.mass.edu]
> Reply To: 	ngeorge at salem.mass.edu
> Sent: 	Friday, March 13, 1998 10:33 AM
> To: 	Multiple recipients of list
> Subject: 	script for exiting Netscape
> 
> 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