Hi Guys,
Following are few tricks that can be used to disable the back button in browser. Please note that we do not literally “disable” the back button, but just nullify its effect is some case and hide it altogether in others.
Knowledge Base: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
Also it is possible to disable the right click on any webpage using Javascript. Add following code in the webpage.
Following are few tricks that can be used to disable the back button in browser. Please note that we do not literally “disable” the back button, but just nullify its effect is some case and hide it altogether in others.
Knowledge Base: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
window.open (
"http://viralpatel.net/blogs/"
,
"mywindow"
,
"status=1,toolbar=0"
);
1
| < body oncontextmenu = "return false;" > Disable Back functionality using history.forwardThis is another technique to disable the back functionality in any webpage. We can disable the back navigation by adding following code in the webpage. Now the catch here is that you have to add this code in all the pages where you want to avoid user to get back from previous page. For example user follows the navigation page1 -> page2. And you want to stop user from page2 to go back to page1. In this case all following code in page
|
No comments:
Post a Comment