<input id="Button1" type="button" value="button" onclick="javascript:GoInputModal()"/>
<script type="text/javascript">
function GoInputModal()
{
var ary = window.showModalDialog("T_report.aspx",'firstwindow','dialogWidth=570px,dialogHeight=200px,top=250px,left=350px,scrollbars,resizable');
}
</script>通过按钮打开一个新窗口,有时点了以后不立即进行打开新窗口,要等好一会才能打开新窗口。
我的另一个程序里,经常因为不能及时打开,需要对打开这个窗口的程序进行延时操作,直到打开子窗口,运行不稳定,经常出错这是为什么?怎么解决这个问题!if(PaperWin==null)
{
//若新窗口未打开则打开窗口
PaperWin=window.open("UP.aspx","PE","menubar=no,resizable=yes,scrollbars=yes");
while (PaperWin == null)
{
setTimeout("Sleep()",500); //延时500毫秒
}
EditTimeout();
}
else
{ }请教高手!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货