Javascript Methods JavaScript Reference

Note:
Delete selection contents.
    
Syntax:
    
document.selection.clear()