HTML coding for File/Exit?

Anna Trupiano anna at palos-verdes.lib.ca.us
Tue Jun 17 14:54:30 EDT 1997


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/
>
>

Perfect!!! It works!!!! (My HTML editor does not like it -- but it
actually works)!  Thanks!!!!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Anna Trupiano				Palos Verdes Library District
Systems Administrator			P.O. Box 8000
  Phone: (310) 377-9584 X258		701 Silver Spur Road
  FAX:   (310) 541-6807			Palos Verdes Peninsula, CA 90274



More information about the Web4lib mailing list