title: Incrementally increasing number in URL - JavaScript
body: <p>I have a URL like <code>http://blog.com/post/1</code> and I need a function which updates the number at the end of it, for pagination.</p>
  
  <p>So far I have:</p>
  
  <pre><code>window.location(document.URL++);
  </code></pre>