| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <div id="message"></div> | 4 <div id="message"></div> |
| 5 <select id="s" autofocus> | 5 <select id="s" autofocus> |
| 6 <option>1</option> | 6 <option>1</option> |
| 7 <option>2</option> | 7 <option>2</option> |
| 8 <option>3</option> | 8 <option>3</option> |
| 9 </select> | 9 </select> |
| 10 <script> | 10 <script> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 document.getElementById('message').innerText += "change"; | 24 document.getElementById('message').innerText += "change"; |
| 25 } | 25 } |
| 26 | 26 |
| 27 document.getElementById('s').addEventListener('mousedown', handler); | 27 document.getElementById('s').addEventListener('mousedown', handler); |
| 28 document.getElementById('s').addEventListener('click', handler2); | 28 document.getElementById('s').addEventListener('click', handler2); |
| 29 document.getElementById('s').addEventListener('mouseup', handler3); | 29 document.getElementById('s').addEventListener('mouseup', handler3); |
| 30 document.getElementById('s').addEventListener('change', handler4); | 30 document.getElementById('s').addEventListener('change', handler4); |
| 31 </script> | 31 </script> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |