зеркало из https://github.com/mozilla/gecko-dev.git
20 строки
381 B
HTML
20 строки
381 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<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>
|