Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

collapseToStart Redirect 1

Summary

Collapses the selection to the start of the first range in the selection.  If the content of the selection is focused and editable, the caret will blink there.

Syntax

sel.collapseToStart()

Parameters

None.

See also

Document Tags and Contributors

 Contributors to this page: Sheppy
 Last updated by: Sheppy,