Home > jQuery > How Do I Setup a Redirect Using Javascript or jQuery?
Bookmark and Share

How Do I Setup a Redirect Using Javascript or jQuery?

Posted on March 22, 2018 | Filed in jQuery

Redirecting in Javascript can be useful after checking form data, but how do we do it? We can do it with pure Javascript like this:

window.location.href = "https://www.bigappledesigns.com";

If for some reason you want to do jQuery instead of pure Javascript to do the redirect then you can use this:

jQuery(location).attr('href', 'https://www.bigappledesigns.com')

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog