blob: af07571591757694e7c1f9d2a3bbc46564ecbcad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<html xmlns="http://www.w3.org/1999/xhtml" contenteditable="true" style="user-select: all;"><sub>x</sub><script>
function boom()
{
window.getSelection().removeAllRanges();
var r = document.createRange();
r.setStart(document.documentElement, 0);
r.setEnd(document.documentElement, 0);
window.getSelection().addRange(r);
document.execCommand("subscript", false, null);
document.execCommand("insertText", false, "y");
}
window.addEventListener("load", boom, false);
</script></html>
|