[英]redirect from html to another page in aspx
我在aspx中包含html页面:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<iframe src="HTMLPage.htm" frameborder="0" style="width: 184px" ></iframe>
</asp:Content>
在html页面中有一个按钮,当我按下它时,我想转到另一个页面。
window.location ="../Doh/doh.aspx?";
问题是新页面在aspx页面的iframe中打开,我想要它而不是第一个aspx页面。
你能帮助我吗?
谢谢
尝试:
parent.window.location.href = "../Doh/doh.aspx?";
尝试访问父窗口并设置网址
window.parent.window.location.href = '../Doh/doh.aspx?'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.