title: Can't get javascript to change img source
body: <p>A real beginner here, with a really basic question, but I simply can't get Javascript to change pictures when using the build in "onclick()" with HTML images..</p>
  
  <p>I looked through so many questions about this, and tried different approaches to changing it, but can't get it to work. </p>
  
  <p>I've tried with different src's, providing the full path and with online image adresses. Tried passing the variable. Simply can't get it to work. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;head&gt;
     &lt;meta charset="utf-8"&gt;
     &lt;title&gt; Javascript - changing images &lt;/title&gt;
  
     &lt;script type="text/javascript"&gt;
  
        function change() {
          var image = document.getElementByID("fpimage");
          image.src = "logo2.png"
          
        }
  
     &lt;/script&gt;
  &lt;/head&gt; 
  
     &lt;body&gt;
        &lt;img src="logo.png" alt = "bla" id = "fpimage" onclick="change();""&gt;
     &lt;/body&gt;
     
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>