title: How to respond to an event after loading a hyperlink page?
body: <p>I wonder is it possible to respond to an event after the client click the hyperlink and the hyperlink is loaded? Which that event can use properties in the hyperlink(i.e. id, class...etc)? </p>
  
  <p>For example, page_A have a hyperlink</p>
  
  <pre><code>&lt;a href="page_B" onclick="some_func"&gt;link&lt;/a&gt;
  </code></pre>
  
  <p>But since some_func need to use some properties in page_B, let say page_B have this line</p>
  
  <pre><code>&lt;p id="a"&gt;hello world&lt;/p&gt;
  </code></pre>
  
  <p>and some_func want to do something with it(e.g. <code>document.getElementById("a")</code>), how can I first load the hyperlink(page_B) then run some_func?</p>