Here is a script that will disable the right click button:

<SCRIPT language="JavaScript">

 <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// [EMAIL PROTECTED]
// Don't delete this header!

var message="Sorry, that function is disabled." // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> 

</SCRIPT>


on 1/18/01 9:43 PM, Mak Wing Lok at [EMAIL PROTECTED] wrote:

> hi,,
> 
> I'm working on the same thing too, i see some site that they pop up a
> message whenever user right click, must be the javascript thingy, as i'm not
> a javascrip expert myself, anyone care to share how to do this?
> 
> 
> ----- Original Message -----
> From: Nathan Chen <[EMAIL PROTECTED]>
> To: CF-Talk <[EMAIL PROTECTED]>
> Sent: Friday, January 19, 2001 4:09 AM
> Subject: How to disable "Back" function on browser
> 
> 
>> Hi All:
>> 
>> Is there a way to disable the "Back" function when the user right click
>> the mouse?  What I am trying to do is to prevent the user from going
>> back to the previous page.
>> 
>> Nathan Chen
>> 
>> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to