OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Preloader</title> | 3 <title>Preloader</title> |
4 | 4 |
5 <script> | 5 <script> |
6 function Click() { | 6 function Click() { |
7 var eventObject = document.createEvent('MouseEvents'); | 7 var eventObject = document.createEvent('MouseEvents'); |
8 eventObject.initMouseEvent('click'); | 8 eventObject.initMouseEvent('click'); |
9 document.getElementById('toClick').dispatchEvent(eventObject); | 9 document.getElementById('toClick').dispatchEvent(eventObject); |
10 } | 10 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 function MetaShiftClick() { | 50 function MetaShiftClick() { |
51 var eventObject = document.createEvent('MouseEvents'); | 51 var eventObject = document.createEvent('MouseEvents'); |
52 eventObject.initMouseEvent('click', true, true, window, | 52 eventObject.initMouseEvent('click', true, true, window, |
53 1, 0, 0, 0, 0, | 53 1, 0, 0, 0, 0, |
54 false, false, true, true, 0, null); | 54 false, false, true, true, 0, null); |
55 document.getElementById('toClick').dispatchEvent(eventObject); | 55 document.getElementById('toClick').dispatchEvent(eventObject); |
56 } | 56 } |
57 | 57 |
58 function WindowOpen() { | 58 function WindowOpen() { |
59 window.open('REPLACE_WITH_PRERENDER_URL'); | 59 window.open('REPLACE_WITH_DESTINATION_URL'); |
60 } | 60 } |
61 </script> | 61 </script> |
62 | 62 |
63 </head> | 63 </head> |
64 <body> | 64 <body> |
65 <script> | 65 <script> |
66 document.write('<link rel="prerender" href="REPLACE_WITH_PRERENDER_URL"/>'); | 66 document.write('<link rel="prerender" href="REPLACE_WITH_PRERENDER_URL"/>'); |
67 </script> | 67 </script> |
68 <a target="_blank" id="toClickTarget" | 68 <a target="_blank" id="toClickTarget" |
69 href="REPLACE_WITH_PRERENDER_URL">Link To click in new window</a> | 69 href="REPLACE_WITH_DESTINATION_URL">Link To click in new window</a> |
70 <a id="toClick" href="REPLACE_WITH_PRERENDER_URL">Link to click</a> | 70 <a id="toClick" href="REPLACE_WITH_DESTINATION_URL">Link to click</a> |
71 </body> | 71 </body> |
72 </html> | 72 </html> |
OLD | NEW |