mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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>
|