我在我的页面中使用了两个框架。Main 中的页面将获得输入,Top frame 必须显示结果页面。
我在大型机页面中使用以下代码。但它显示
错误:“Microsoft JScript 运行时错误:‘topFrame’未定义”
代码:
<frame src="" id="topFrame" target="topFrame" scrolling="no">
<frame src="txtPage.aspx" target="topFrame" name="mainFrame">
txtPage(MainFrame)
Response.Write("<script>topFrame.location.href=\"Homepage.aspx\";</script>");