Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to disable mouse's right click and scroll bar

Reply
Thread Tools

How to disable mouse's right click and scroll bar

 
 
hon123456
Guest
Posts: n/a
 
      12-20-2005
Dear all,

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

Thanks

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      12-20-2005
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!!!

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

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
 
Reply With Quote
 
 
 
 
Tim
Guest
Posts: n/a
 
      12-20-2005
"Randy Webb" <(E-Mail Removed)> wrote
> > 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!!!
>
>

javascriptfunction(w){for(var%20i=0;i<w.length;i ++){arguments.callee(w.fra
mes[i]);}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.

Tim


 
Reply With Quote
 
Randy Webb
Guest
Posts: n/a
 
      12-20-2005
Tim said the following on 12/20/2005 1:54 AM:
> "Randy Webb" <(E-Mail Removed)> wrote
>
>>>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!!!
>>
>>

>
> javascriptfunction(w){for(var%20i=0;i<w.length;i ++){arguments.callee(w.fra
> mes[i]);}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

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
 
Reply With Quote
 
Christopher Benson-Manica
Guest
Posts: n/a
 
      12-20-2005
Randy Webb <(E-Mail Removed)> wrote:

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


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

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
disable title bar, status bar, and address bar of a window Matt HTML 9 08-23-2004 07:49 PM
javascript to disable the title bar, status bar, and address bar of a window Matt Javascript 9 08-23-2004 01:23 PM
Re: disable title bar, status bar, and address bar of a browser window John Hann ASP .Net 0 08-21-2004 05:07 AM
disable title bar, status bar, and address bar of a browser window Matt ASP .Net 0 08-21-2004 03:50 AM



Advertisments