Clears the contents of the selection.
Syntax
selection.clear()
Return Value
No return value.
Standards Information
This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
selection
This crashes with an Internal Error message on IE7 and Vista (haven't checked on other configurations) using Prototype and calling it from a mousemove event
[jsudds] I'll be glad to enter a bug for it, if you could provide a repro script. Thanks!