how to switch to different link with js code example
Example: javascript redirect
<script>
window.location.href = "http://mywebsite.com/home.html";
</script>
<script>
window.location.href = "http://mywebsite.com/home.html";
</script>