blob: d151ac65f1dd701b6598896584d4e50d37b8490d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<html>
<head>
<script type="text/javascript">
function boom()
{
function x()
{
document.removeEventListener("DOMAttrModified", x);
document.execCommand("backcolor", false, "green");
}
document.getElementById("td").focus();
document.addEventListener("DOMAttrModified", x);
try {
document.execCommand("subscript", false, null);
} catch(e) {
}
document.removeEventListener("DOMAttrModified", x);
}
</script>
</head>
<body contenteditable="true" onload="setTimeout(boom, 30);">
<table><tbody contenteditable="false"><tr><td contenteditable="true" id="td"></td></tr></tbody></table>
</body>
</html>
|