title: Scroll to HTML content in WebView
body: <p>Is there a way to programmatically <strong>scroll</strong> to a <strong>HTML element</strong> that is displayed in a <strong>WebView</strong>?</p>
  
  <p>The WebView API only provides a <code>scrollTo(x,y)</code> method, but I can't find a way to determine the position of a displayed element.</p>
  
  <p><strong>Solution</strong></p>
  
  <p>Using Javascript:</p>
  
  <pre><code>webView.getSettings().setJavaScriptEnabled(true);
  webView.loadUrl("javascript:document.getElementById('id').scrollIntoView();");
  </code></pre>