There are two ways to redirect to a webpage using JavaScript. In the following examples, the user will be redirected to the jQuery webpage once they click the button:
location.replace()
location.href
Relevant Answers
Explore Courses
Free Resources