How to redirect on another webpage in jQuery
In this article, I will share with you how to redirect on another webpage in jQuery.
There are many ways to redirect on another web pages using jQuery and javascript.
#1: Example
window.location.href = "Another webpage url";
#2: Example
window.location.replace("Another webpage url");
#3: Example
window.location.assign("Another webpage url");
#4: Example
window.navigate("Another webpage url");
#5: Example
$(location).attr('href','Another webpage url');
You can run and check it.
I hope it will help you
Copyright 2024 ErrorGram