- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to make a page redirect using jQuery?
To redirect to another webpage in jQuery, use attr(). You can try to run the following code to redirect to another webpage −
Example
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"> </script> <script> $(document).ready(function() { $(location).attr('href','http://qries.com'); }); </script> </head> <body> </body> </html>
- Related Articles
- How to redirect to another webpage using jQuery?
- How to redirect from an HTML page?
- How to automatically redirect a Web Page to another URL?
- How to load a page in div using jQuery?
- How to use JavaScript to redirect an HTML page?
- How to use Meta Tag to redirect an HTML page?
- How to put a complete HTML page in a div using jQuery?
- How to automatically redirect your visitors to your new home page?
- How to make several plots on a single page using Matplotlib?
- How do I redirect my web page with JavaScript?
- How to make page links in HTML Page?
- How to make several plots on a single page using Matplotlib(Python)?
- How to loop through all the iframes elements of a page using jQuery?
- How to fetch nth div from an HTML page using jQuery?
- How to Scroll to the top of the page using JavaScript/ jQuery?

Advertisements