title: Is it possible to use JavaScript in one document to change HTML in another?
body: <p>For example:</p>
  
  <p><code>function change()
  {
  document.getElementById('identification').href = "http://www.stackoverflow.com";
  }
  </code></p>
  
  <p>The associated HTML (the important bit)</p>
  
  <p><code>
  &lt;a href="#" id="identification"&gt;Stack Overflow&lt;/a&gt;<br>
  &lt;input type=button value="Change" onclick="change()" /&gt;
  </code></p>
  
  <p>This will change the href in my  tag to <a href="http://www.stackoverflow.com">http://www.stackoverflow.com</a>, but say I wanted to do this from a different HTML file? The JavaScript would be in the  tag of the other file, but would edit the content of the first. Is this possible? If so, how?</p>