Visit Mozilla.org

DOM:Selection:removeAllRanges

From MDC

« Gecko DOM Reference

[edit] Summary

Removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and leaving nothing selected.

[edit] Syntax

sel.removeAllRanges();

[edit] Parameters

None.