Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<title>Test reference</title>
<p>
Some selected text
</p>
<script>
getSelection().removeAllRanges();
let r = document.createRange();
r.selectNode(document.documentElement);
getSelection().addRange(r);
</script>