A window.location simulator for the browser