| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head><title>Download Test</title></head> |
| 3 <body> |
| 4 <a id='dl' href="/download-test1.lib">Click to download!</a> |
| 5 <script> |
| 6 // Dispatch a click event async, rather than synchronously during parsing, |
| 7 // since this is consistent with how real user input events are dispatched |
| 8 // and processed. |
| 9 window.setTimeout(function() { |
| 10 var evt = document.createEvent("MouseEvent"); |
| 11 evt.initMouseEvent('click', true, true); |
| 12 document.getElementById('dl').dispatchEvent(evt); |
| 13 }, 0); |
| 14 </script> |
| 15 </body> |
| 16 </html> |
| OLD | NEW |