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 openWindow(url
) {
18 function removeFrame() {
19 var frame
= document
.getElementById('1-2-id');
20 frame
.parentNode
.removeChild(frame
);
25 var frame
= document
.createElement('iframe');
26 frame
.setAttribute('src', '1-2.html');
27 document
.body
.appendChild(frame
);
36 <iframe src=
"1-1.html" name=
"1-1-name"></iframe>
38 <iframe src=
"1-2.html" id=
"1-2-id" name=
"1-2-name"></iframe>
40 <iframe src=
"1-3.html" id=
"1-3-id"></iframe>