Mega Code Archive

 
Categories / JavaScript DHTML / Document
 

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>