求一個連接方法
----------- right.htm ----------------------------------------------
<frameset rows="26,*" border="0">
<frame name="right_top" src="right_top.htm" target="right_main">
<frame name="right_main" src="welcome.htm" target="_self">
</frameset>
----------- right_top.htm ------------------------------------------
<html>
<td id="btnSearch" onclick="btn_onclick(this);">newPage1</td>
<td id="btnRefresh" onclick="btn_onclick(this);">newPage2</td>
<SCRIPT Language=javaScript><!--
function btn_onclick(obj) {
if (obj.id=="btnSearch") {
right_main.document.href = "newPage2.htm"; //不対
}
else {
window.open("newPage2.htm");//不対
}
}
</html>
問題:在right_top.htm中、当click時、
叫"newPage1.htm"和"newPage2.htm"替換掉下面frame中的"welcome.htm"