5 sel
= document
.getElementById("sel");
6 sel
.selectedIndex
= 49;
7 sel
.selectedIndex
= -1;
10 <body onload=
"test()">
11 <select multiple
id=
"sel" style=
"width:500px; height:300px;"></select>
13 sel
= document
.getElementById("sel");
14 for (var i
= 0; i
< 50; i
++) {
15 option
= document
.createElement("option");
16 option
.innerHTML
= "Option " + i
;
17 sel
.appendChild(option
);