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