Disable Browser Back Button

Results 1 to 3 of 3

Thread: Disable Browser Back Button

  1. #1
    Jon Munro Guest

    Default Disable Browser Back Button

    Can anyone tell me how to disable the browser back button? I need to prevent users from submitting transactions more than once.

  2. #2
    SteveC Guest

    Default RE: Disable Browser Back Button

    You can&#039t disable the user&#039s back button. If you want to prevent user&#039s from submitting a form more than once, set a cookie; if you just want to prevent them from continually clicking, use client-side script.<BR><BR>Scripting:<BR>var submitbutton = 0;<BR>function Proceed (Form)<BR>{<BR>if (submitbutton == 0) //Submit only once<BR> {<BR> submitbutton++;<BR> Form.submit();<BR> }<BR> else<BR> {<BR> alert ("This form has already been submitted.");<BR> }<BR> }<BR><BR>On your next page, set a cookie:<BR><BR>If Request.Cookies("Prevent")("Submits") &#060;&#062; "Yes" Then<BR> Response.Cookies("Prevent")("Submits") = "Yes"<BR>&#039Do your code<BR>Else<BR> Response.Write "You have already submitted this form."<BR>End If

  3. #3
    Jon Guest

    Default Thank You!

    Steve, thank you for taking the time to help Much appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts