| <html> |
| <head><title>Download Test for <a download></title></head> |
| <body> |
| <a id='reddot1' href="anchor_download_test.png" download='red_dot1.png'>Download First Red Dot!</a> |
| <a id='reddot2' href="anchor_download_test.png" download='red_dot2.png'>Download Second Red Dot!</a> |
| <script> |
| function startDownload1() { |
| var evt = document.createEvent("MouseEvent"); |
| evt.initMouseEvent('click', true, true); |
| document.getElementById('reddot1').dispatchEvent(evt); |
| return true; |
| } |
| function startDownload2() { |
| var evt = document.createEvent("MouseEvent"); |
| evt.initMouseEvent('click', true, true); |
| document.getElementById('reddot2').dispatchEvent(evt); |
| return true; |
| } |
| </script> |
| </body> |
| </html> |