mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
19 lines
459 B
HTML
19 lines
459 B
HTML
<!DOCTYPE HTML><html><head>
|
|
</head>
|
|
<body>
|
|
noteditable<span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span><br />
|
|
<script>
|
|
// Position the caret after "u"
|
|
var sel = window.getSelection();
|
|
sel.removeAllRanges();
|
|
var range = document.createRange();
|
|
var x = document.getElementById('x');
|
|
var t = x.firstChild;
|
|
range.setStart(t, 11);
|
|
range.setEnd(t, 11);
|
|
sel.addRange(range);
|
|
x.focus();
|
|
</script>
|
|
</body>
|
|
</html>
|