Source code

Revision control

Other Tools

Test Info:

<head contenteditable="true">
<script type="text/javascript">
<![CDATA[
function boom()
{
var r = document.createRange();
r.selectNode(document.body);
r.deleteContents();
try { document.execCommand("selectAll", false, null); } catch(e) { }
}
]]>
</script>
</head>
<body onload="boom();" contenteditable="true"></body>
</html>