title: Using a parameter in URL to scroll to div (mimicking an anchor behavior)
body: <p>I'm using a jQuery tabs plugin that uses anchors so that you can define which tab should be open by default.</p>
  
  <p>But if the interface is below the fold, it doesn't scroll into view. I tried adding an anchor tag above the interface, but I can't get it to highlight the appropriate tab AND scroll into view.</p>
  
  <p>Since I can't use two anchors, my thought was if I wanted to provide a link to scroll into view I could include a parameter in the URL, like this:
  <a href="http://stage.ravencreative.com/scroll/Index.html?scrollto=Interface#parentHorizontalTab2" rel="nofollow">http://stage.ravencreative.com/scroll/Index.html?scrollto=Interface#parentHorizontalTab2</a>
  (where "Interface" might be the name of an anchor of id name at the top of the interface)</p>
  
  <p>I googled and searched stackoverflow and couldn't find anything. Is there some sort of script that would allow this to work? Or is there a better way to do this?</p>
  
  <p><strong>Here's a working example:</strong>
  <a href="http://stage.ravencreative.com/scroll/Index.html" rel="nofollow">http://stage.ravencreative.com/scroll/Index.html</a></p>
  
  <p>This makes the second tab active:
  <a href="http://stage.ravencreative.com/scroll/Index.html#parentHorizontalTab2" rel="nofollow">http://stage.ravencreative.com/scroll/Index.html#parentHorizontalTab2</a>
  (#parentHorizontalTab2 is what makes the second tab open by default)</p>
  
  <p>This scrolls to the tabbed interface:
  <a href="http://stage.ravencreative.com/scroll/Index.html#Interface" rel="nofollow">http://stage.ravencreative.com/scroll/Index.html#Interface</a>
  (#Interface is the anchor at the beginning of the interface)</p>
  
  <p>But I can't get <strong>both</strong> to work at the same time. Any suggestions? Is there a way to do something like:
  <a href="http://stage.ravencreative.com/scroll/Index.html?scrollto=Interface#parentHorizontalTab2" rel="nofollow">http://stage.ravencreative.com/scroll/Index.html?scrollto=Interface#parentHorizontalTab2</a> where a script picks up on the scrollto parameter and scrolls to it?</p>
  
  <p>Something like (I'm using English since I am not familiar with the code construct):</p>
  
  <pre><code>if scrollto is found in the URL
  then scroll to the anchor defined in the scrollto
  </code></pre>