Helpful Information
 
 
Category: HTML
Non-selectable text??

Is it possible to make text Non-Selectable when it is displayed in a browser?

Thanks

Generally not.

The only way to do it for EVERY browser and EVERY method is to make the text an image.

Otherwise, FireFox users, View > Source and others can all select your text.

cr3ative

create an invisible text box:

<input style="visibility:hidden;" type="text" id="selectme" value=" " />

and add the script:

<script>
onmousemove = function(e){
document.getElementById("selectme").select();
}
</script>

of course, this traps the onMouseMove event - but it may suit some purposes.










privacy (GDPR)