How to lock / deactivate "Refresh" and "Back" button on browser.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sagarp86
    New Member
    • Oct 2006
    • 6

    How to lock / deactivate "Refresh" and "Back" button on browser.

    How to lock / deactivate "Refresh" and "Back" button on browser.

    Problem is in voting application. Once we click for a vote application goes to next page and increament one vote in the database. But when we click on "Refresh" button on the browser, the query is fired again and again one vote is added un-necessarily..On ly one vote should be posted from each pc / user.

    Same thing is with "Back" button on browser. when we click on vote, application opens next page of 'Results' / 'Thanks for vote', one should not go back again to previous page of voting because if it happens one can vote again again...

    I dont want to use pop up window for results / thanks...

    Or you can tell me how to lock the ip address of pc after making one vote..or now allowing any user to vote again and again


    Please help in find any solution
Working...