Dette er tekst som ikke kan velgs da det står
mellom div-tagger som har id="content"
|
<script type="text/javascript"> window.onload = function() { document.onselectstart = function() {return false;} // ie document.onmousedown = function() {return false;} // mozilla } /* You can attach the events to any element. In the following example I'll disable selecting text in an element with the id 'content'. */ window.onload = function() { var element = document.getElementById('content'); element.onselectstart = function () { return false; } // ie element.onmousedown = function () { return false; } // mozilla } </script> |
|
<div id="content"> Dette er tekst som ikke kan velgs da det står mellom div-tagger som har id="content" </div> |