MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 347153 of Selection.collapseToStart()

  • Revision slug: DOM/Selection/collapseToStart
  • Revision title: collapseToStart
  • Revision id: 347153
  • Created:
  • Creator: mozidell2013
  • Is current revision? No
  • Comment Collapses the selection to the start of the first range in the selection. If the content the selection is in is focused and editable, the caret will blink there.

Revision Content

{{ DomRef() }}

Summary

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

Syntax

sel.collapseToStart()

Parameters

None.

 
   
   

 

Revision Source

<p>{{ DomRef() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Collapses the selection to the start of the first range in the selection.&nbsp; If the content the selection is in is focused and editable, the caret will blink there.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre class="eval">
<i>sel</i>.collapseToStart()
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>None.</p>
<div class="noinclude">
  &nbsp;</div>
<dl>
  <dd>
    <table>
      <thead>
      </thead>
      <tbody>
        <tr>
          <th scope="row">&nbsp;</th>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <th scope="row">&nbsp;</th>
          <td>&nbsp;</td>
        </tr>
      </tbody>
    </table>
  </dd>
</dl>
<p>&nbsp;</p>
Revert to this revision