Javascript examples for CSS Style Property:userSelect
Get the value of the "user-select" property of an element:
<!DOCTYPE html> <html> <body> <h1>Hello World!</h1> <button type="button" onclick="myFunction()">test</button> <script> function myFunction() {/* w ww . j a v a 2 s . c om*/ console.log(document.body.style.WebkitUserSelect); console.log(document.body.style.MozUserSelect); console.log(document.body.style.msUserSelect); console.log(document.body.style.userSelect); } </script> </body> </html>