clear method
[This documentation is preliminary and is subject to change.]
Clears the contents of the selection.
![]() |
Syntax
var retval = selection.clear();Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
Parameters
This method has no parameters.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Build date: 3/8/2012
crashes on ie7 and vista
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!
- 2/13/2008
- wlk125
- 2/13/2008
- John Sudds [Microsoft]
