title: javascript object : current or method?
body: <p>This is the code:</p>
  
  <pre><code>var x = document.getElementById("x");
  </code></pre>
  
  <p>This is the HTML:</p>
  
  <pre><code>&lt;p id="x"&gt;text&lt;/p&gt;
  </code></pre>
  
  <p>This is the next javascript:</p>
  
  <pre><code>x.innerHTML = "newtext"
  alert(x.innerHTML)
  </code></pre>
  
  <p>So what will happen? Will x</p>
  
  <blockquote>
    <p>Save information when using <code>var x = document.getElementById("x")</code> and variable <code>x</code> will change but not HTML <code>&lt;p&gt;</code> with id <code>x</code>?  </p>
  </blockquote>