一考试页面框架如下
<frameset rows="50,*" frameborder="0" framespacing="0" border="0">
<frame name = "TopPage" src="Time.aspx" scrolling="no" noresize="ture" onload="TopPage.document.body.oncontextmenu=new Function('TopPage.event.returnValue=false;');" />
<frameset frameborder="0" >
<frame name = "main" src="KSJ.aspx" scrolling="yes" noresize="ture" onload="main.document.body.oncontextmenu=new Function('main.event.returnValue=false;');" />
</frameset>
</frameset>time.aspx用来计时,时间一到强制交卷,即触发ksj.aspx中的"交卷按钮"的click事件。
请问如何在time.aspx中用javascript 触发kjs.aspx中的"交卷按钮"的click事件
<frameset rows="50,*" frameborder="0" framespacing="0" border="0">
<frame name = "TopPage" src="Time.aspx" scrolling="no" noresize="ture" onload="TopPage.document.body.oncontextmenu=new Function('TopPage.event.returnValue=false;');" />
<frameset frameborder="0" >
<frame name = "main" src="KSJ.aspx" scrolling="yes" noresize="ture" onload="main.document.body.oncontextmenu=new Function('main.event.returnValue=false;');" />
</frameset>
</frameset>time.aspx用来计时,时间一到强制交卷,即触发ksj.aspx中的"交卷按钮"的click事件。
请问如何在time.aspx中用javascript 触发kjs.aspx中的"交卷按钮"的click事件
考试到点交卷用 timer 控件 客户端显示时间用 onload(),settime() 事件
好像这种方法可以解决,但跟点击click不一样
以下两话没有执行。
ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('交卷成功!');</script>");
string taretUrl = "<script language=javascript>window.top.location='KaoS_tuichu.aspx';</script>";