blob: 5fc2ea3bc86f748f60d1321571c4c3225017484e (
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
|
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function boom()
{
var a = document.documentElement;
var b = document.body;
document.removeChild(a);
b.contentEditable = "true";
document.appendChild(a);
function t() {
document.removeEventListener("DOMAttrModified", t, false);
document.removeChild(a);
}
document.addEventListener("DOMAttrModified", t, false);
document.execCommand("insertunorderedlist", false, "<h1>");
document.removeEventListener("DOMAttrModified", t, false);
}
</script>
</head>
<body onload="boom()"></body>
</html>
|