HTML coding for File/Exit?

Charles A. Summerhill casummerhill at librarylrc.uams.edu
Tue Jun 17 14:07:49 EDT 1997


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/




More information about the Web4lib mailing list