From kodeboard, 4 Years ago, written in JavaScript.
Embed
  1. // like an HTTP redirect
  2. window.location.replace("http://mysite.com");
  3.  
  4. // like clicking on a link
  5. window.location.href = "http://mysite.com";

You must login to reply or comment on this code.