title: How to move a div from left to right using javascript
body: <p>I have <code>div</code> named <code>movingImage</code> that I want to move to the right 50px every time I click a button.</p>
  
  <p>Here's my javascript:</p>
  
  <pre><code>function moving_Image() {
      document.getElementById("movingImage").style.right = "50px";
  }
  </code></pre>
  
  <p>And html:</p>
  
  <pre><code>&lt;h1 id="movingImage"&gt; __________ &lt;/h1&gt;
  &lt;input type="button" value="click me" onclick="moving_Image()"&gt; 
  </code></pre>