OLD | NEW |
1 <!-- | |
2 @MAC-DENY:AXLayoutComplete* | |
3 --> | |
4 <!DOCTYPE html> | 1 <!DOCTYPE html> |
5 <html> | 2 <html> |
6 <body> | 3 <body> |
7 <select size=3> | 4 <select size=3> |
8 <option selected>Apple</option> | 5 <option selected>Apple</option> |
9 <option>Orange</option> | 6 <option>Orange</option> |
10 <option>Banana</option> | 7 <option>Banana</option> |
11 </select> | 8 </select> |
12 <script> | 9 <script> |
13 document.querySelector('select').focus(); | 10 document.querySelector('select').focus(); |
14 function go() { | 11 function go() { |
15 document.querySelector('select').selectedIndex = 1; | 12 document.querySelector('select').selectedIndex = 1; |
16 } | 13 } |
17 </script> | 14 </script> |
18 </body> | 15 </body> |
19 </html> | 16 </html> |
OLD | NEW |