if(history.previous() == "http://www.url1.com"){     location.replace("http://www.forward1.com")}else if(history.previous() == "http://www.url2.com"){     location.replace("http://www.forward2.com")}else{     location.replace("http://www.forward_default.com")}