I have a setTimeout that records the URL in a variable called newURL.
function checkURL() {
var newURL = window.location;
} setInterval(checkURL, 1000);
What I would like to happen, is that a certain function must be executed, when the URL changes. Could someone help me here please?