OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
2 <html> | |
3 <head> | |
4 <title>Test for HTMLSelectElement.remove() on an Options object</title> | |
5 <SCRIPT LANGUAGE=javascript> | |
6 function test() { | |
7 var zipselect = document.getElementById("theSelect"); | |
8 var before = zipselect.options.length; | |
9 zipselect.remove(zipselect.options[0]); | |
10 var after = zipselect.options.length; | |
11 if (before > after) | |
12 document.getElementById("theDiv").innerHTML = "test passed" | |
13 if (window.testRunner) | |
14 testRunner.dumpAsText(); | |
15 } | |
16 </SCRIPT> | |
17 </head> | |
18 | |
19 <body onload="test();"> | |
20 <div id="theDiv">test failed</div> | |
21 <form> | |
22 <select id="theSelect"> | |
23 <option value="ALL" selected >hello</option> | |
24 </select> | |
25 </form> | |
26 </body> | |
27 | |
28 </html> | |
OLD | NEW |