OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script> |
| 4 window.name = "foo"; |
| 5 |
| 6 function simulateClick(target) { |
| 7 var evt = document.createEvent("MouseEvents"); |
| 8 evt.initMouseEvent("click", true, true, window, |
| 9 0, 0, 0, 0, 0, false, false, |
| 10 false, false, 0, null); |
| 11 |
| 12 return target.dispatchEvent(evt); |
| 13 } |
| 14 |
| 15 function openWindow(url) { |
| 16 window.open(url); |
| 17 return true; |
| 18 } |
| 19 </script> |
| 20 </head> |
| 21 <body> |
| 22 |
| 23 Top frame. |
| 24 <br> |
| 25 <iframe src="1-1.html" name="1-1-name"></iframe> |
| 26 <br> |
| 27 <iframe src="1-2.html" id="1-2-id" name="1-2-name"></iframe> |
| 28 <br> |
| 29 <iframe src="1-3.html" id="1-3-id"></iframe> |
| 30 <br> |
| 31 |
| 32 </html> |
| 33 </body> |
| 34 </html> |
OLD | NEW |