我写的以下语法
<input id="Button1" type="button" value="Scan" language="javascript" onclick="return Button1_onclick()" /></td>
<script language="javascript" type="text/javascript">
function Button1_onclick()
{
window.open("win1.html","Window1",
"menubar=no,width=430,height=360,toolbar=no");
}
</script
答案 0 :(得分:0)
为了将来的目的:不要通过“返回”来调用你的功能。
<input id="Button1" type="button" value="Scan" language="javascript" onclick="Button1_onclick()" /></td>
<script language="javascript" type="text/javascript">
function Button1_onclick()
{
window.open("win1.html","Window1",
"menubar=no,width=430,height=360,toolbar=no");
}
</script>