OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 function test() { | 4 function test() { |
5 var sl = document.getElementById('sl'); | 5 var sl = document.getElementById('sl'); |
6 sl.focus(); | 6 sl.focus(); |
7 document.execCommand("SelectAll"); | 7 document.execCommand("SelectAll"); |
8 if (!document.getElementById('o1').selected && !document.getElem
entById('o2').selected && !document.getElementById('o3').selected) | 8 if (!document.getElementById('o1').selected && !document.getElem
entById('o2').selected && !document.getElementById('o3').selected) |
9 log("Test 1 Passed"); | 9 log("Test 1 Passed"); |
10 else | 10 else |
(...skipping 21 matching lines...) Expand all Loading... |
32 <body onload="test()"> | 32 <body onload="test()"> |
33 This tests that select all works on options in a list box.<br> | 33 This tests that select all works on options in a list box.<br> |
34 <select id="sl" size=5> | 34 <select id="sl" size=5> |
35 <option id="o1">1 | 35 <option id="o1">1 |
36 <option id="o2">2 | 36 <option id="o2">2 |
37 <option id="o3">3 | 37 <option id="o3">3 |
38 </select> | 38 </select> |
39 <div id="res"></div> | 39 <div id="res"></div> |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |