Closing a web page

  • Thread starter Bruce A. Julseth
  • Start date
B

Bruce A. Julseth

What will the code look like to completely close a session? I want to put an
"Exit" button on my form. Clicking this "Exit" button will cause the web
page completely close down, just like clicking the "X" (close) in the upper
right hand corner of the brower window.

Thanks....

Bruce
 
J

JDR

Bruce,

This will close a browser window:
<input type="button" value="Exit" ONCLICK="self.close()">
 
B

Bruce A. Julseth

JDR said:
Bruce,

This will close a browser window:
<input type="button" value="Exit" ONCLICK="self.close()">

Works. Thanks... Is there a way to over ride the IE question it asks the
client

"The Web page you are viewing is trying to close the window.
Do you want to close the window?"

I'd like NOT to have this question asked and the window just closed when
"Exit" is clicked.

Thanks...

Bruce
 
K

Kathleen Anderson [MVP - FP]

Top