title: On Click: Open a Pop-up Div on a Different Page
body: <p>On page1.php I have a <code>click</code> event that causes the user to be redirected to page2.php. It goes something like this:</p>
  
  <pre><code>$("#someButton").click(function() {
      window.location = "page2.php";
  });
  </code></pre>
  
  <p>And that works great. But what I really want is to open a hidden, UI-blocking <code>&lt;div&gt;</code> on page2. The user can already open this <code>&lt;div&gt;</code> manually by clicking another button on page2, that goes something like this:</p>
  
  <pre><code>$('#someOtherButton').click(function() {
     $("#pageContainer").block({message: $("#theDivIWant2See")});
  });
  </code></pre>
  
  <p>Can I make a <code>click</code> event from the JavaScript on one page call the JavaScript on another? Or will I need to add in some HTML-parsing to pass information between pages? (I'm not looking for a JavaScript hand-out here, just a strategy to help me move forward.)</p>