| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head><title>This is a test page with frames</title> | 2 <head><title>This is a test page with frames</title> |
| 3 <script> | 3 <script> |
| 4 function simulateClick(target) { | 4 function simulateClick(target) { |
| 5 var evt = document.createEvent("MouseEvents"); | 5 var evt = document.createEvent("MouseEvents"); |
| 6 evt.initMouseEvent("click", true, true, window, | 6 evt.initMouseEvent("click", true, true, window, |
| 7 0, 0, 0, 0, 0, false, false, | 7 0, 0, 0, 0, 0, false, false, |
| 8 false, false, 0, null); | 8 false, false, 0, null); |
| 9 | 9 |
| 10 return target.dispatchEvent(evt); | 10 return target.dispatchEvent(evt); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function clickLink(linkID) { | 13 function clickLink(linkID) { |
| 14 target = frames['navFrame'].document.getElementById(linkID); | 14 target = frames['navFrame'].document.getElementById(linkID); |
| 15 if (target == null) | 15 if (target == null) |
| 16 alert("clickLink failed for id=" + linkID); | 16 alert("clickLink failed for id=" + linkID); |
| 17 return simulateClick(target); | 17 return simulateClick(target); |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| 20 </head> | 20 </head> |
| 21 <frameset cols="25%,75%"> | 21 <frameset cols="25%,75%"> |
| 22 <frame src="frame_left.html" name="navFrame"> | 22 <frame src="REPLACE_WITH_FRAME_LEFT_PATH" name="navFrame"> |
| 23 <frame src="frame_right.html" name="contentFrame"> | 23 <frame src="frame_right.html" name="contentFrame"> |
| 24 </frameset> | 24 </frameset> |
| 25 </html> | 25 </html> |
| OLD | NEW |