navigate to other link in Js code example
Example 1: javascript got to url
window.location.href = "https://www.google.com"
Example 2: javascript redirect
<script>
window.location.href = "http://mywebsite.com/home.html";
</script>
window.location.href = "https://www.google.com"
<script>
window.location.href = "http://mywebsite.com/home.html";
</script>