| Difference between window.location.replace and window.location.href?
The main difference between .replace and .href is that replace method with replace the current page with one we have provide in input parameter just like below
document.location.replace="https://www.crackyourinterview.com";
Once we use above code can not go back to previous browser session as history is not save but in window.location.href we can go back in browser history
what is | | |