Redirect a browser via JavaScript


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <html>
  2. <head>
  3. <SCRIPT LANGUAGE="JavaScript">
  4. <!--
  5. window.location="http://www.go.here/whatever.html";
  6. // -->
  7. </script>
  8. </head>
  9. <body>
  10. <p>If this page does not re-direct you automatically, please <a href="http://www.go.here/whatever.html">click here</a>.</p>
  11. </body>
  12. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.