collapseToStart method

Collapses, or sets the insertion point or caret at the beginning of a selection object.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1

Syntax

var retval = HTMLSelection.collapseToStart();

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.

Standards information

Remarks

Raises an INVALID_STATE DOMException if there are no Ranges in the selection.

See also

HTMLSelection
collapseToEnd

 

 

Show:
© 2014 Microsoft