title: DefaultButton and DefaultFocus in Internet Explorer 11
body: <p>I have an ASP.NET page that contains an iframe. Inside that iframe, there is a form with a DefaultFocus and a DefaultButton set, as shown below.</p>
  
  <pre><code>&lt;form id="Form1" method="post" runat="server" defaultfocus="txtSearchPhrase" defaultbutton="btnSearch"&gt;
  </code></pre>
  
  <p>When viewing this page in IE11, all of the content inside of the iframe appears to be shifted off the left side of the screen by about 100px or so. This does not happen in any other browser, including IE10.</p>
  
  <p>If I remove the DefaultButton and DefaultFocus from the form, the problem disappears. I can then use Javascript to manually hookup the default button and focus, but since I have many different pages that are potentially rendered inside the iframe, it's not ideal to have to change each and every one of those pages.</p>
  
  <p>Does anyone know what's causing this or if there's a better way to address it?</p>