---
title: Selection.collapseToStart()
slug: Web/API/Selection/collapseToStart
tags:
  - API
  - Experimental
  - HTML Editing
  - Method
  - Reference
  - Selection
browser-compat: api.Selection.collapseToStart
---
{{ ApiRef("DOM") }}{{SeeCompatTable}}

The **`Selection.collapseToStart()`** method 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

```js
sel.collapseToStart()
```

### Parameters

_None._

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("Selection")}}, the interface it belongs to.
