selection.clear() (Method)

A method to clear the area selected by the user.


JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmySelection.clear()

The contects of the current selection are cleared. This is very tricky to do neatly and even harder to accomplish in a portable manner. It is probably better to use the more structured innerHTML and related properties of the DOM hierarchy to accomplish the effects you want.