JavaScript Reference/Javascript Methods/empty
"empty()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function1() {
document.selection.empty();
} </script>
you release the mouse.
Do some selection here.
</body> </html>
</source>
"empty()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |selection | +----------------+--------------------------------------------------------------+
</source>
"empty()" Syntax, Parameters and Note
<source lang="javascript">
Note: Clears the content of the selection object.
Syntax:
document.selection.empty()
</source>