Redirect a page in jQuery or JavaScript to another page using window.location

You can redirect a page using jQuery or JavaScript when the condition true. In order to redirect a page jQuery is not needed, you can JavaScript object window.location You can use the redirect method for any HTML Object, Use onclick event handler to call required function and write the code inside function for redirecting a URL.The following code give you the basic idea regarding usage and functionality.

URL or Page Redirection in JavaScript