mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-30 23:29:40 +00:00
24 lines
432 B
HTML
24 lines
432 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<script>
|
||
|
|
||
|
function boom()
|
||
|
{
|
||
|
var x = document.getElementById("x");
|
||
|
|
||
|
window.getSelection().removeAllRanges();
|
||
|
|
||
|
var range = document.createRange();
|
||
|
range.setStart(x, 0);
|
||
|
range.setEnd(x, 0);
|
||
|
window.getSelection().addRange(range);
|
||
|
|
||
|
document.execCommand("delete", false, "null");
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body contenteditable="true" onload="boom();"><div></div><span id="x"></span></body>
|
||
|
</html>
|