bbdobuddy wrote:
I have a link button that I want to have the program closed when I
click it.
The quesition is what is the syntax that makes this possible.
<linkdefhere onclick="javascript:window.close();">
I can't figure out where to put this line of code in my Asp.net
program
if you put a
<a href="#" onclick="window.close()">Close browser</a>
somewhere on your page (in the html), then your visitor will
see a link that will close his browser window.
If this was also his last browser-window, then his session is ended,
as far as he is concerned, as the session-cookie has gone.
On the server that session will last probably another 20 minutes!
(by default: 20 minutes after the last request)
This link will *not* close the web-application itself, that will keep running
indefinitely, serving any number of users.
Hans Kesting