HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 11th, 2000, 08:19 AM
jensschroeder jensschroeder is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 1 jensschroeder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old October 13th, 2000, 08:26 AM
dragos dragos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 27 dragos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > history.back()


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway