7 document
.getElementById("t1").focus();
8 document
.getElementById("t1").setSelectionRange(0, 1);
9 document
.getElementById("d1").setAttribute("contentEditable", "false");
13 <body onload=
"init()">
14 <div contenteditable=true
id=
"d1">
15 <input type=
"text" id=t1
value=
"ABCD" readonly
>