Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

javascript

How to redirect to a webpage using JavaScript

Educative Answers Team

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:

1. Using location.replace()

2. Using location.href

RELATED TAGS

javascript
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring