• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Back Button & Mouse Risk click

 
sakthi shan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii,
can anyone pls. tell me, (a) how to disable IE Browser Back button using JavaScript. (b) how to disable the Mouse right click button in the above said page.
With Thnks and Rgds,
SSV.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHY! Do you want to do this??
 
sakthi shan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to incorporate this in my Application...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured that out, but what purpose is this serving?
You can not disable the back button.
If you want a useless script then sarch google for "No Right Click JavaScript" and you will find 100's of them.
People hate when you mess with their browsers, you can not hide code/pictures/text/etc since it exsists in your cache. Are you also going to disable (ALT <-) combo too?
If you are doing both of these to keep a user from going back to the previous page there is a better solution. Plus a person can disable JavaScript and get around all your little things.
Eric
 
sakthi shan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you pls. tell me that best solution???
cheers,
SSV.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
best solution would be server side
instead of a link you can use
document.location.replace("theUrl");
It replaces the current page in the history so you can not go back to it.
Another bad solution that I am known for on the net is this link:
http://www10.brinkster.com/A1ien51/basics/backbutton.htm
Eric
 
sakthi shan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you pls. tell me the solution for back button - disabling alone???
With Thanks,
SSV.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not just disable he back button. You have to do either of the things I said above. The replace method or the link...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic