title: How to go to a specific element on page?
body: <p>On my HTML page, I want to be able to 'go to' / 'scroll to' / 'focus on' an element on the page. </p>
  
  <p>Normally, I'd use an anchor tag with a <code>href="#something"</code>, but I'm already using the hashchange event along with the <a href="http://benalman.com/projects/jquery-bbq-plugin/" rel="noreferrer">BBQ plugin</a> to load this page.</p>
  
  <p>So is there any other way, via JavaScript, to have the page go to a given element on the page?</p>
  
  <p>Here's the basic outline of what I'm trying to do:</p>
  
  <pre><code>function focusOnElement(element_id) {
       $('#div_' + element_id).goTo(); // need to 'go to' this element
  }
  
  &lt;div id="div_element1"&gt;
     yadda yadda 
  &lt;/div&gt;
  &lt;div id="div_element2"&gt;
     blah blah
  &lt;/div&gt;
  
  &lt;span onclick="focusOnElement('element1');"&gt;Click here to go to element 1&lt;/span&gt;
  &lt;span onclick="focusOnElement('element2');"&gt;Click here to go to element 2&lt;/span&gt;
  </code></pre>