setBaseAndExtent method

void setBaseAndExtent(
  1. Node anchorNode,
  2. int anchorOffset,
  3. Node focusNode,
  4. int focusOffset,
)

The setBaseAndExtent() method of the Selection interface sets the selection to be a range including all or parts of two specified DOM nodes, and any content located between them.

Implementation

external void setBaseAndExtent(
  Node anchorNode,
  int anchorOffset,
  Node focusNode,
  int focusOffset,
);