I\'m building an application in an environment where I\'m restricted to using the local file system and a browser (i.e. running a server isn\'t an option). I have a generic
var referrer = document.referrer; window.location.replace(referrer);
Use this it will work