window.location.assign("some_url") vs window.location.href = "some_url"
Functionally there is no difference between these two methods for loading a new document (source).
It has been mentioned that using
window.location.href = "some_url" may be slightly more performant because setting a property value uses fewer resources than invoking a function, eg
In both of these cases a new document will be loaded and the browser history will be preserved so clicking the back button in the browser will take the user back the the previous page they came from. The document will be opened in the same browser window the user came from.
This function will open a new document. The document will be opened in the same browser window the user came from. The difference here is the history will be reset so clicking the back button in the browser will not take the user back to the previous page.
This function will open the new document in a new browser window.