disable right mouse clicking in javascript

how can you disable right mouse clicking in javascript

Page 1 of 1

5 Replies - 949 Views - Last Post: 11 December 2009 - 12:29 PM

#1 clueless616  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 07-December 09

disable right mouse clicking in javascript

Posted 07 December 2009 - 09:22 AM

how is it possible to disable right mouse clicking in javascript!?!? my library did it so i know it CAN be done... thanks
Is This A Good Question/Topic? 0
  • +

Replies To: disable right mouse clicking in javascript

#2 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: disable right mouse clicking in javascript

Posted 07 December 2009 - 09:29 AM

Next time, just ask Google.
Was This Post Helpful? 1
  • +
  • -

#3 OMNICIDE666  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 22
  • Joined: 09-November 09

Re: disable right mouse clicking in javascript

Posted 07 December 2009 - 09:52 AM

... thats helpful

This post has been edited by OMNICIDE666: 08 December 2009 - 06:42 AM

Was This Post Helpful? 0
  • +
  • -

#4 kirbyfan101  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 30-April 09

Re: disable right mouse clicking in javascript

Posted 08 December 2009 - 07:41 AM

here Ya go :) :P
{CODE REMOVED}



@kirbyfan101 we have a policy here that the OP needs to show more effort than simply asking for code before any code is handed out.
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1642
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: disable right mouse clicking in javascript

Posted 08 December 2009 - 09:38 AM

You need to know that there is no foolproof way of accomplishing this. Any Javascript code you find can be circumvented by simply turning Javascript off.
Was This Post Helpful? 0
  • +
  • -

#6 forest51690  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 58
  • View blog
  • Posts: 340
  • Joined: 20-March 09

Re: disable right mouse clicking in javascript

Posted 11 December 2009 - 12:29 PM

In my opinion, the days of disabling right-click are gone. Now we have browsers that don't allow it. You might be able to prevent some people from right-clicking, but not all.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1