J Wolpert

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromJ Wolpert
ToMe
Subjectno right click... works for all browsers tested
Date6 May 2006 10:44
no right click... works for all browsers tested , bonecho(firefox 2.0 beta)
and safari

function ckIE(){if (event.button==2) return ck();}
function ckNS(e){if(e.which==2||e.which==3) return ck();}
function ckOP(e){if(e && e.ctrlKey)return ck();}
function ck(){alert("Bad Dog!");return false;}
if(window.opera) {//Opera
    document.onmouseup=null;
    document.onmousedown = ckOP;
    window.location = "http://opera.com"; // oh well! opera cheats!
} else if (document.layers) { //some old netscappy thing
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=ckNS;
} else if (document.all&&!document.getElementById) { // some old ie thing
    document.onmousedown=ckIE;
}
document.oncontextmenu=ck; // standards
FromMe
ToJ Wolpert
SubjectRe: no right click... works for all browsers tested
Date6 May 2006 14:06
> if(window.opera) {//Opera
>     document.onmouseup=null;
>     document.onmousedown = ckOP;
>     window.location = "http://opera.com"; // oh well! opera 

I am not interested in any script that breaks the user's interface by
denying the user access to their own menus. And especially not one that
plays such stupid redirect games towards users who like to make choices for
themselves. Please grow up.
FromJ Wolpert
ToMe
SubjectRe: no right click... works for all browsers tested
Date6 May 2006 20:43
I think you missed the point.. the redirect is not part of the "production"
version.

Opera documents how to do it, and then does not implement the api.

[Ed. yes it does, but it allows the user to choose if they should allow a
Web page to break their UI or not.]

Your site, which was quite nice, has code that does not work. Perhaps you
are a Microsoft ie4 user? or maybe a Netscape 4 user?

[Ed. neither.]

I guess code that ignores standards, is as stupid as your condescending
truculence.

Don't bother to grow up.

[Ed. was that supposed to be insulting? Oh well, whatever.
J, I shall leave you to annoy your users by breaking their browsers.
You don't need them anyway.]
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.