[英]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.