3 <script type=
"text/javascript">
5 function select(start
, startOffset
, end
, endOffset
) {
6 var sel
= getSelection();
8 var range
= document
.createRange();
9 range
.setStart(start
, startOffset
);
10 range
.setEnd(end
, endOffset
);
15 var p
= document
.body
;
16 select(p
.childNodes
[0],0,p
.childNodes
[0],1);
18 range
= sel
.getRangeAt(0);
25 <body onload=
"boom()"><span>Hello Kitty
</span></body>