4 <script type=
"text/javascript">
7 document
.getSelection().selectAllChildren(document
.body
);
8 var editor
= document
.getElementById("editor");
10 editor
.selectionStart
= 2;
11 editor
.selectionEnd
= 4;
17 <body onload=
"doTest()">
19 <textarea id=
"editor">textarea
</textarea>