Javascript Methods JavaScript Reference

Note:
Clears the content of the selection object.
    
Syntax:
    
document.selection.empty()