不知道下面这样可以不:
1.htm:
//.....
<script language=javascript>
var newWin;
function mm()
{
newWin=window.open("2.htm");
}
function nn()
{
newWin.document.all.b1.click();
}
</script>
//......
<input type="button" onclick=mm() value="open">
<input type="button" onclick=nn() value="execute">
//.....2.htm:
//.....
<input type=button name=b1 onclick='alert("2.htm页面的对话框!")'>
1.htm:
//.....
<script language=javascript>
var newWin;
function mm()
{
newWin=window.open("2.htm");
}
function nn()
{
newWin.document.all.b1.click();
}
</script>
//......
<input type="button" onclick=mm() value="open">
<input type="button" onclick=nn() value="execute">
//.....2.htm:
//.....
<input type=button name=b1 onclick='alert("2.htm页面的对话框!")'>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货