Disable mouse wheel click

malabarbe Posted messages 136 Status Member -  
malabarbe Posted messages 136 Status Member -
Hello,

How to disable the middle mouse click.

Looking forward to your response.

7 answers

  1. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
     
    Hello,
    On your website or on your PC?

    --
    Your solution can be found on Google / Bing / Yahoo (CCM - High Tech), at the vet (L'internaute - Animals), in your bookstore (L'internaute - Books)
    0
  2. malabarbe Posted messages 136 Status Member 1
     
    My bad, on my site!
    0
  3. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
     
    Hello,

    The scroll wheel click is generally a shortcut to replace right click + open a new tab. Is that the action you want to block?

    --
    Your solution can be found on Google / Bing / Yahoo (CCM - High Tech), at the vet (L'internaute - Animals), in your bookstore (L'internaute - Books)
    0
  4. malabarbe Posted messages 136 Status Member 1
     
    Sure for the link,

    But it's in Jquery, how to use it?
    0
    1. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
       
      Below is the solution in js without jQuery.
      document.attachEvent etc.
      0
  5. malabarbe Posted messages 136 Status Member 1
     
    Okay, I placed the script in the Head, but no effect?

    Do I need to call it somewhere?
    0
    1. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
       
      Did you put the code in js tags?
      Which browser did you try it on? Do you have a code list for each browser?

      If you've checked all that, try placing the script at the end of your HTML code (still within js tags).
      0
  6. malabarbe Posted messages 136 Status Member 1
     
    Hello,
    - Yes, code in JS tags
    - Yes, the code for IE
    - Yes, tested the code in various places

    Obsessed with the roulette click, I hadn't noticed, but the script
    has one action: Stop the roulette action for the scroll.

    We're getting closer to the solution but the issue remains.
    0