title: Continuously Move div position using javascript
body: <p>I want to move my div position continuously left to right then top to bottom.</p>
  
  <p>After first move my code stop.</p>
  
  <p>please check <a href="https://jsfiddle.net/LLqmL33p/" rel="noreferrer">https://jsfiddle.net/LLqmL33p/</a></p>
  
  <pre><code>     function placeDiv(x_pos) {
    var d = document.getElementById('boxed');
    d.style.position = "absolute";
    d.style.left = x_pos+'px';
      setTimeout(function(){   placeDiv2(10); }, 1000);
  
  }
  function placeDiv2(y_pos) {
    var d = document.getElementById('boxed');
    d.style.position = "absolute";
    d.style.top = y_pos+'px';
    setTimeout(function(){ placeDiv(15); }, 1000);
  
  }
  
  placeDiv(10);
  </code></pre>
  
  <p>I cant understand what can I do now?</p>