Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Question, on Scripts 1

Status
Not open for further replies.

taval

Programmer
Jul 19, 2000
192
GB
How do I put a button on a html page that when clicked upon<br>executes the code:<br><br>Session.abandon <br><br>This code is used to logout from .asp pages I have produced.<br>Thankful for any help given.<br>
 
you could make it a submit button, or make it a button and have the onclick handler say formname.submit.&nbsp;&nbsp;Then on the submission, test using <br>If Request(&quot;button name&quot;) = &quot;button value&quot; Then<br>&nbsp;&nbsp;&nbsp;Session.abandon<br>End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top