Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
using javascript to prevent
Old 08-19-2005, 07:41 PM using javascript to prevent
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Hi,

I am trying to figure out how to use javascript to prevent users from right clicking and using the backbutton for a test i am creating

any one have any ideas how to do this?
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 08-19-2005, 07:46 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
here you go for the disable right click

http://www.dynamicdrive.com/dynamicindex9/noright.htm
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 08-19-2005, 07:55 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
You can use the code that praveen gave to prevent right clicking (although pointless because there are numerous ways around this)

As for disabling the back button, I do not think it is possible. Unless somebody else knows a way.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 08-19-2005, 10:58 PM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
One way to disable the back button is to use a forwarder, which is a page in-between the two pages you want to separate.

The forwarder changes the page location when it loads, something like this:
HTML Code:
<html>
<body onload="window.location='whatever.htm';">

</body>
</html>
That way if the person uses the back button, they go to the forwarder, which puts them right back where they were.

This is easily circumvented, of course, but I think it's about the best that can be done.
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to using javascript to prevent
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19398 seconds with 12 queries