<html>
<body>
<p>Click the button to get the value of the "user-select" property of the p element below.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo" style="user-select:none">It is not possible to select this text.</p>
<script>
function myFunction() {
alert(document.getElementById("demo").style.userSelect);
}
</script>
</body>
</html>