title: Prevent scrolling on keyboard display iOS 6
body: <p>I am running into a strange issue. I am currently producing a mobile web app using HTML5 and CSS3 for iOS 6 only. </p>
  
  <p>However, when an <code>input</code> element receives focus and the soft keyboard is displayed, the window is scrolled so that the input is not obscured by the keyboard (even though it won't be in any instance).</p>
  
  <p>I have read on SO and via Google that one can add the following to prevent this behaviour (when viewing this inside a UIWebView):</p>
  
  <pre><code>input.onfocus = function () {
      window.scrollTo(0, 0);
      document.body.scrollTop = 0;
  }
  </code></pre>
  
  <p>However, it seems that in iOS 6, even though the window is initially scrolled to <code>0,0</code>, it is then once again scrolled to centre the focused element. Has anyone else come across this and do they know of a fix for iOS 6?</p>