How to disable mouse's right click and scroll bar

H

hon123456

Dear all,

I want to disable the mouse's right click and the scroll
bar. What is the javascript to do that?

Thanks
 
R

Randy Webb

hon123456 said the following on 12/19/2005 10:08 PM:
Dear all,

I want to disable the mouse's right click and the scroll
bar. What is the javascript to do that?

There isn't any. Leave my @%@!#$ mouse alone!!!

javascript:(function(w){for(var%20i=0;i<w.length;i++){arguments.callee(w.frames);}try{function%20n(r){r.onclick=r.oncontextmenu=r.onmousedown=r.onmouseup=null;}n(w.document);n(w.document.body);}catch(e){alert('Bookmarklet%20failed:\n\n'+e.message);}})(top);
 
T

Tim

Randy Webb said:
Dear all,

I want to disable the mouse's right click and the scroll
bar. What is the javascript to do that?

There isn't any. Leave my @%@!#$ mouse alone!!!

javascript:(function(w){for(var%20i=0;i<w.length;i++){arguments.callee(w.fra
mes);}try{function%20n(r){r.onclick=r.oncontextmenu=r.onmousedown=r.onmou
seup=null;}n(w.document);n(w.document.body);}catch(e){alert('Bookmarklet%20f
ailed:\n\n'+e.message);}})(top);


How erudite, well said. That 'll teach 'em.
Nice bookmarklet also.

Tim
 
R

Randy Webb

Tim said the following on 12/20/2005 1:54 AM:
Randy Webb said:
Dear all,

I want to disable the mouse's right click and the scroll
bar. What is the javascript to do that?

There isn't any. Leave my @%@!#$ mouse alone!!!


javascript:(function(w){for(var%20i=0;i<w.length;i++){arguments.callee(w.fra
mes);}try{function%20n(r){r.onclick=r.oncontextmenu=r.onmousedown=r.onmou
seup=null;}n(w.document);n(w.document.body);}catch(e){alert('Bookmarklet%20f
ailed:\n\n'+e.message);}})(top);

Randy



How erudite, well said. That 'll teach 'em.
Nice bookmarklet also.


I can't take credit for the bookmarklet. Only for having/sharing it. If
my memory serves correctly (It may not), the bookmarklet was written by
Richard Cornford although it may have been Lasse Reichstein Nielsen. I
have had it for a while, it is on my toolbar :)
 
C

Christopher Benson-Manica

Randy Webb said:
There isn't any. Leave my @%@!#$ mouse alone!!!

Agreed. If nothing else, it renders Opera's glorious mouse gesture
functionality inoperative.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top