I'm currently redirecting users to a different page in C# with the following code;
Response.Redirect("somepage.aspx");
However, I'd like to do this in JavaScript instead.
Basically you need:
function goURL() {
  location.href="http://example.com"  // change url to your's
}
additional java-script navigation options can be found in following link: http://www.sivamdesign.com/scripts/navigate.html
Try this code below
<script language="JavaScript">
    function move() {
        window.location = "http://www.yourdomain.com";
    }
</script>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With