Can't highlight a single word on this webpage in Firefox

Discussion in 'JavaScript' started by Victor6799, Aug 14, 2023.

  1. #1
    Hi All,

    I'm semi-new to javascript so I hopefully won't get lost on suggested answers. I have a website that I'm trying to figure out why I cannot left click and drag to highlight a single word. The webpage won't let me. Can someone explain how the web developer was able to accomplish this ? Thanks in advance.

    Here is the webpage:

    https://www.minimalismmadesimple.com/home/self-validation/
     
    Solved! View solution.
    Victor6799, Aug 14, 2023 IP
  2. #2
    It's using protection. This information is just for educational purposes to illustrate that such a "protection" isn't worth it;). First of all, go to the Dev Tools and remove the "unselectable" class from the html element. Then go to css styles and deselct the -webkit-user-select rule. After that, go to event listeners and remove all of them related to any mouse/touch interactions. That's it.
     
    MrOndre, Sep 10, 2023 IP
    sarahk likes this.