Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<html>
<div>CONTENT</div>
<script>
const div = document.querySelector("div");
getSelection().setBaseAndExtent(div.firstChild, 0, div.firstChild, 2);
</script>
</html>