What’s the difference between window.location= and window.location.replace()?

Is there a difference between these two lines?

var url = "http://www.google.com/";
window.location = url;
window.location.replace(url);

3 Answers
3

Leave a Comment