Solution for "java script redirect"

// 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";

redirect javascript

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

javascript redirect

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

javascript redirect

// removes the link from the history, // e.g. if you would click the arrow back in any browser // user wouldn't return to that site window.location.replace("http://stackoverflow.com"); // similar behavior as clicking on a link // user will return to that site if pressing arrow back window.location.href = "http://stackoverflow.com";

redirect javascript

Similar codes for "java script redirect"


Latest 'Javascript' questions

Added before "java script redirect"