title: Auto-Scroll If Button on Previous Page Was Clicked
body: <p>Let's say there are two buttons (Button 1 and Button 2) on a page (Page A). Both of these buttons, when clicked, lead to the same external page (Page B). How do make it so that button 1, when clicked, leads to the top of the external page B, and that button 2 automatically causes the page to scroll down to some area of the page.</p>
  
  <p>I would assume that example code would look something like this:</p>
  
  <p><code>&lt;div id="b1" class="button"&gt; &lt;/div&gt;</code>
  <code>&lt;div id="b2" class="button"&gt; &lt;/div&gt;</code></p>
  
  <p>And on the external page for a javascript function:</p>
  
  <pre><code>function initPage() {
   if(scrollTo1k == true)
    {
      body.animate({scrollTop: 1000}, 1000);
    }
  }
  </code></pre>
  
  <p><strong>EDIT</strong>: I now can make the computer open up a new page to the desired location, but the scroll effect when opening the page is nonexistent.</p>