0
Sangeetha
there is nothing 100% which we can do with the Browsers back button we have to go with this solution only and there is no standard which will work across browser from the safari to chrome to IE so stick to this option and move ahead
thanks
mark approved if it helps
0
i tried it its working bt is there anything which will disable the backbutton it should not be clickable
0
Hey sangeetha
dont know if this is the full proof and how many browser supports u can try this
- <html>
- <head>
- <title>Disable Back Button in Browser - Online Demo</title>
- <style type="text/css">
- body, input {
- font-family: Calibri, Arial;
- }
- </style>
- <script type="text/javascript">
- window.history.forward();
- function noBack() {
- window.history.forward();
- }
- </script>
- </head>
- <body onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
- <H2>Demo</H2>
- <p></p>
- <p>Click here to Goto <a href="noback.html">NoBack Page</a></p>
- </body>
- </html>
try running this in ur browser and lemme know if it helps
0
have tried using this i am asking for a solution which will disable the entire back option it self this goeas back and again comes and gets retained
0
- <script type = "text/javascript" >
- function preventBack(){window.history.forward();}
- setTimeout("preventBack()", 0);
- window.onunload=function(){null};
- </script>
https://stackoverflow.com/questions/12381563/how-to-stop-browser-back-button-using-javascript
Did u try this Go through this once