var node = document.getElementsByClassName("my_cl ass")[0]; var range = document.createRange(); range.setStart(node, 10);