disabling BACK & FORWARD buttons of the browsers.
-
That is an example of one of the most important _don't_s of using JavaScript.
- It isn't possible using JavaScript, as well as the fact that all browsers will handle back and forward buttons/actions in different manners.
- Remember that the user always has control over what they're doing - no matter what your page is doing, browsers have been set up and created so that the user has the control over what they're doing and web pages cannot compromise this.
- (Even if possible) removing such a core feature of the web browser would simply irritate your users and make them go elsewhere.
Regards, --Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds -
That is an example of one of the most important _don't_s of using JavaScript.
- It isn't possible using JavaScript, as well as the fact that all browsers will handle back and forward buttons/actions in different manners.
- Remember that the user always has control over what they're doing - no matter what your page is doing, browsers have been set up and created so that the user has the control over what they're doing and web pages cannot compromise this.
- (Even if possible) removing such a core feature of the web browser would simply irritate your users and make them go elsewhere.
Regards, --Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus TorvaldsThis is not Possible in Web Pages. But programatically you can do. In java script: BACK KEY: 1. check history.forward contains any data then call in history.back(). FORWARD KEY: 1. check history.back contains any data then call in history.forward().