|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I manage to prescribe a one-way navigation for the user? I.e. is there a way to disable all those access opportunities, like ALT+ARROW_LEFT, MOUSE_Right (context-menu), that perform a history.back(), or alternatively to keep the current page until a certain action is performed.
|
|
#2
|
|||
|
|||
|
For entire disable of navigation you have to do the following:
1. From your index.html / default.asp page open the main page of your site as following: window.open("main.html","test","fullscreen=no,status=yes,toolbar=no,menubar=no,location=no"); 2. All your pages should contain a script alike the following: <script language=javascript> <!-- function amsg() { alert("This function is disabled!"); } function nokeys() { if ((window.event.keyCode == 93) | (window.event.keyCode == 18)) amsg(); } function onlyleftclick() { if (window.event.button > 1) amsg(); } document.onmousedown=onlyleftclick; document.onkeydown=nokeys; //--> </script> This a solution compatible only with IE 4.0 + browsers. I don't know very well the DOM on Netscape, but I think step 2 must be rewritten to provide compatibility with Netscape. Have fun, Dragos |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > history.back() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|