“JavaScript Redirecion” Respostas de código

Redirecionar JavaScript

// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";
FloatDev

JS redireciona

window.location.href = "/"; // appears on history
window.location.replace("/"); // does not appear on history
Code Cat

JavaScript Redirecion

<script>
  window.location.href = "http://mywebsite.com/home.html";
</script>
Bored Beaver

JavaScript Redirecion

window.location.href = "http://mywebsite.com/home.html";
Grepper

Redirecionar com JavaScript

window.location.replace('http://mywebsite.com/home.html');
Spyder

JavaScript Redirecion

<p onclick="myFunction()"></p>
<script>
function myFunction() {
	  window.location.href = "https://whereyouwouldliketogo.com"
}
</script>
Donald Duck

Respostas semelhantes a “JavaScript Redirecion”

Perguntas semelhantes a “JavaScript Redirecion”

Mais respostas relacionadas para “JavaScript Redirecion” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código