Answers for "javascript redirect to url syntax"

50

javascript redirect to url

window.location.href = "http://mywebsite.com/home.html";
Posted by: Guest on July-18-2019
2

javascript redirect

<p onclick="myFunction()"></p>
<script>
function myFunction() {
	  window.location.href = "https://whereyouwouldliketogo.com"
}
</script>
Posted by: Guest on April-06-2021

Code answers related to "javascript redirect to url syntax"

Code answers related to "Javascript"

Browse Popular Code Answers by Language