How do I disable text selection with CSS or JavaScript? [duplicate]

This question already has answers here: How to disable text selection highlighting (50 answers) Closed 1 year ago. I am making a HTML/CSS/jQuery gallery, with several pages. I indeed have a “next” button, which is a simple link with a jQuery click listener. The problem is that if the user click the button several times, … Read more

How to disable text selection highlighting

For anchors that act like buttons (for example Questions, Tags, Users, etc. which are located on the top of the Stack Overflow page) or tabs, is there a CSS standard way to disable the highlighting effect if the user accidentally selects the text? I realize that this could be done with JavaScript and a little googling … Read more