JavaScript Redirect


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

Basic JavaScript browser redirect.


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. window.location.href = 'http://www.google.com/';
  3. </script>

Report this snippet


Comments


You need to login to view comments.