Disable the mouse 'right-click'

Results 1 to 5 of 5

Thread: Disable the mouse 'right-click'

  1. #1
    Scouse Guest

    Default Disable the mouse 'right-click'

    Is it possible to disable the &#039right-click&#039 on a mouse using html, and if so, how? Advice much appreciated.

  2. #2
    CPeinado Guest

    Default RE: Disable the mouse 'right-click'

    add this function to you page and a call it from your body tag.<BR>it should work. it checks the mouse click. <BR><BR>&#060;BODY onMouseDown="return CheckClick(this);"&#062;<BR><BR>function CheckClick(form)<BR>{<BR> var KeyMessage = "No right clicks allowed!!"<BR> <BR> if (window.event.button == 2)<BR> {<BR> alert(KeyMessage)<BR> }<BR>}<BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Disable the mouse 'right-click'

    go to dynamicdrive.com, they have hundreds of cool little tricks there. Be advised that the user can turn off javascript and it won&#039t work, also, if they go to the menu and choose view--&#062; source, they will be able to get your source code anyway<BR><BR>mj

  4. #4
    Join Date
    Dec 1969
    Los Angeles, CA

    Default One thing to point out

    that will work but that is NOT HTML that is JS....

  5. #5
    Scouse Guest

    Default RE: Disable the mouse 'right-click'

    Star geezer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts