1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

HELP

Discussion in 'Software Q&A' started by maVen, Mar 14, 2006.

Thread Status:
Not open for further replies.
  1. maVen

    maVen New Member

    Joined:
    Jan 26, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India(Mumbai)
    Am makin an online test application using ASP(VBScrpt),i want to disable right clicking on any page and also want to disable the back button i.e. once on a page u cannot go back to the prev page,i have made the standard toolbar go away but unfortunately using the back space key we can go to the prev page how can i prevent the users from pressing the back space key?
    Ane scripts ne1?
     
  2. shovik

    shovik Banned

    Joined:
    Jun 8, 2005
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Hooghly
  3. sakumar79

    sakumar79 Active Member

    Joined:
    Nov 28, 2004
    Messages:
    2,441
    Likes Received:
    9
    Trophy Points:
    38
    Location:
    Madurai
    @Shovik, the three links dont appear to have anything about blocking back button usage...

    @maven, first, I must inform that I dont remember much of VBScript (did it about 4 years ago)... Check out if you can capture a keystroke and overwrite its default behaviour... Second option, check if the whole session cannot be within one page and set the Next Button behaviour to access internal command rather than submit a post/get...

    EDIT:
    Wait, I ran a google on "Disable back VBScript" (without quotes) and found a couple of useful articles (Of course, they typically apply to IE only)

    http://www.webreference.com/dhtml/diner/beforeunload/ (appears to be Javascript though)

    http://www.visualbasicscript.com/m_446/tm.htm

    http://www.aspin.com/func/review?tree=aspin/tutorial/websiten&id=1718410

    Arun
     
    Last edited: Jul 2, 2006
Thread Status:
Not open for further replies.

Share This Page