Empty a selection : Selection : Document JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Document » Selection »

 

Empty a selection



    
<html>
<body>
<script language="JavaScript">
function function1() {
    document.selection.empty();
}
</script>
<p onMouseUp="function1();">you release the mouse.</p>
<p>You can select text in this paragraph in various places.</p>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Document
» Selection