title: How to move an image with javascript
body: <p>I'm having trouble getting this image to move to the right can anyone help ive just started scripting and I am finding it very confusing.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body style="margin:0px;"&gt;
  &lt;img id="tank" style="position:absolute;"src="tank.png"/&gt;
  &lt;script type="text/javascript"&gt;
  var change = document.getElementById('tank').style.left = '0';
  
  while(change &lt; 200)
  {
  change++;
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>