Mozilla & NO right click

Problems installing or using the NOP Design Free Shopping Cart that do not fit into one of the above categories.

Moderators: Stefko, Randy, Koibito

Mozilla & NO right click

Postby Randy » Mon Apr 16, 2007 1:30 pm

The standard JS "no right click" script doesn't work with FireFox. IE 7 is fine, but NN 7 and FF 2 ignore the JS blocking script.

Does anyone have a solution?

Please post demo URLs as well as the script!

Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

Postby Koibito » Mon Apr 16, 2007 3:00 pm

This is supposed to work: ... php?t=5614

Haven't tried it myself though.
Site Admin / Guru
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: Mozilla & NO right click

Postby muscovy1617 » Wed Dec 02, 2009 3:38 pm

Works great
Posts: 11
Joined: Thu Oct 01, 2009 3:46 pm

Re: Mozilla & NO right click

Postby Histographik » Sat Dec 11, 2010 1:47 am

This works for me as a general No Right-Click. No warnings set - just do it quietly in the background...

Code: Select all
<script type="text/javascript">
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
document.oncontextmenu=new Function("return false")

Place at bottom of the page just above </body> closing tag
Posts: 18
Joined: Sun Mar 14, 2010 2:40 am
Location: Hong Kong

Return to Help: Cart / General

Who is online

Users browsing this forum: No registered users and 4 guests