Reputation: 335
i include html page in aspx:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<iframe src="HTMLPage.htm" frameborder="0" style="width: 184px" ></iframe>
</asp:Content>
in the html page there is a button and when i press it i want to go to another page.
window.location ="../Doh/doh.aspx?";
the problem is that the new page open in the iframe in the aspx page, and i want that it instead of the first aspx page.
can you help me?
thanks
Upvotes: 0
Views: 161
Reputation: 22619
Try accessing parent's window and set url
window.parent.window.location.href = '../Doh/doh.aspx?'
Upvotes: 1