Redirect Webpage with Javascript

From Bitbull Wiki
Jump to navigation Jump to search
<HTML>
  <HEAD>
    <TITLE>Automatic Redirection</TITLE>
    <SCRIPT LANGUAGE="JavaScript"><!--
      function redirect () { setTimeout("go_now()",10000); }
      function go_now ()   { window.location.href = "http://www.new-page.ch"; }
      //--></SCRIPT>
  </HEAD>
  <BODY onLoad="redirect()">
    <H1>URL has changed</H1>
    <P>Please note the new location is http://www.new-page.ch
    <P>Ensure you update your bookmarks.
    <P>This page will automatically redirect in 10 seconds.
    <P>If this does not work for any reason use the link below:
    <P><A HREF="http://www.new-page.ch">http://www.new-page.ch</A>
  </BODY>
</HTML>