I have this very simple asp.net page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>This is my header</h1>
<iframe src="http://www.google.com" style="width:100%; height:500px"></iframe>
</div>
</form>
</body>
</html>
As you can see I have an header, and under I have an Iframe which loads google.com. It works fine. The problem occurs if I click on a link on google.com (i.e the Advanced search link). It navigates to the new page, and still my header is showing at the top. If I at this momement click the browser back button it navigates back to the google front page, but it takes over the complete page. My header is not shown at the top anymore. How can I avoid this? This only happens in Internet Explorer (just testet in v. 8). It works as expected in Chrome.
Please help!