Wednesday, 1 April 2015

Difference b/w assign() and replace() ?



Using window.location.assign("url") will just cause a new document to load. Using window.location.replace("url") will replace the current document and replace the current History with that URL making it so you can't go back to the previous document loaded.

No comments:

Post a Comment