setStartBefore

The Range.setStartBefore() method sets the start position of a Range relative to another Node.

MDN Reference