Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disable text selection in js

onselectstart = (e) => {
  e.preventDefault()
  console.log("nope!")
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #text #selection #js
ADD COMMENT
Topic
Name
7+3 =