JavaScript to simulate redirect and/or clicking on a link

Posted: 02/07/2012

Not a great way to do this in JavaScript in my opinion, but these will work pretty close:

HTTP Redirect

    window.location.replace("http://www.blakepell.com");

Link Click

    window.location.href = "http://www.blakepell.com";