зеркало из https://github.com/mozilla/gecko-dev.git
21 строка
424 B
HTML
21 строка
424 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript">
|
|
function doTest()
|
|
{
|
|
document.getSelection().selectAllChildren(document.body);
|
|
var editor = document.getElementById("editor");
|
|
editor.focus();
|
|
editor.select();
|
|
editor.blur();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="doTest()">
|
|
<p>normal text</p>
|
|
<textarea id="editor" spellcheck="false">textarea</textarea>
|
|
</body>
|
|
</html>
|
|
|