OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 window.name = "main_contents"; | 5 window.name = "main_contents"; |
6 function simulateClick(anchor_name, properties) { | 6 function simulateClick(anchor_name, properties) { |
7 var evt = new MouseEvent("click", properties); | 7 var evt = new MouseEvent("click", properties); |
8 | 8 |
9 target = document.getElementById(anchor_name); | 9 target = document.getElementById(anchor_name); |
10 return target.dispatchEvent(evt); | 10 return target.dispatchEvent(evt); |
11 } | 11 } |
12 </script> | 12 </script> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 This page helps testing shift-clicking or ctrl-clicking an anchor/link | 15 This page helps testing shift-clicking or ctrl-clicking an anchor/link |
16 that points to the same site. See also https://crbug.com/23815 and/or | 16 that points to the same site. See also https://crbug.com/23815 and/or |
17 https://crbug.com/658386. | 17 https://crbug.com/658386. |
18 <hr> | 18 <hr> |
19 <a href="/title1.html" | 19 <a href="/title1.html" |
20 id="test-anchor-no-target">Test link to click while holding ctrl key</a> | 20 id="test-anchor-no-target">Test link to click while holding ctrl key</a> |
| 21 <hr> |
| 22 <a href="/title1.html" |
| 23 target="_blank" |
| 24 id="test-anchor-with-blank-target">Test link with target="_blank"</a> |
| 25 <a href="/title1.html" |
| 26 target="subframe" |
| 27 id="test-anchor-with-subframe-target">Test link with target="subframe"</a> |
| 28 |
| 29 <iframe src="/title1.html" name="subframe"></iframe> |
21 </body> | 30 </body> |
22 </html> | 31 </html> |
OLD | NEW |