PDA

View Full Version : Non-selectable text??



tacbob
10-12-2004, 09:25 AM
Is it possible to make text Non-Selectable when it is displayed in a browser?

Thanks

cr3ative
10-12-2004, 01:54 PM
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

AdamBrown
11-15-2006, 09:11 PM
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.