Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How can I redirect the user from one page to another using jQuery or pure JavaScript?

Solution #1
for Jquery you can use following code
$(location).prop('href', 'https://www.codegrepper.com/profile/shafeeque-ahmad')

Solution #2
for pure javascript you can use following solution

window.location.href='otherpage.com';
 window.location.assign('otherpage.com');
 //and...

 window.location.replace('otherpage.com');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #redirect #user #page #jQuery #pure
ADD COMMENT
Topic
Name
1+2 =