507566.html (951B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <script type="text/javascript"> 5 6 var count = 0; 7 8 function boom() 9 { 10 var r = document.body; while(r.firstChild) { r.removeChild(r.firstChild); } 11 12 document.body = document.createElementNS("http://www.w3.org/1999/xhtml", "body"); 13 var div = document.createElementNS("http://www.w3.org/1999/xhtml", "div"); 14 var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); 15 span.setAttributeNS(null, "contenteditable", "true"); 16 document.documentElement.appendChild(span); 17 (document.body || document.documentElement).appendChild(div); 18 var text = document.createTextNode("\u200F\uE8D4"); 19 document.body.appendChild(text); 20 document.documentElement.appendChild(document.body); 21 document.documentElement.offsetHeight; 22 text.data += "\uF0C5"; 23 document.execCommand("selectAll", false, null); 24 25 if (++count < 20) 26 setTimeout(boom, 0); 27 } 28 29 </script> 30 </head> 31 32 <body onload="boom();"></body> 33 </html>