navigationJavaScriptNavigationEasyHow do you redirect the browser to a new URL in JavaScript?1Set window.location.href or call window.location.replace()2Call document.redirect()3Set window.url4Use fetch()Back to list