Thanks to Joe Danziger that posted this topic.
<script type="text/javascript">
function disableSelection(element) {
element.onselectstart = function() {
return false;
};
element.unselectable = "on";
element.style.MozUserSelect = "none";
element.style.cursor = "default";
}
</script>
<script type="text/javascript">
disableSelection(document.getElementById("text"));
</script>
No comments:
Post a Comment