Get the new URL on window.popstate
<p>Is there any way I can get the new page's url when the <code>window.popstate</code> is fired?</p>

<pre><code>window.onpopstate(function (){
    newPageUrl = //get the new page's URL
})
</code></pre>