Monday, December 2, 2019

[jquery][Resolved] jquery redirect

Here is the jquery syntax :
$(location).attr("href","https://www.google.com");


However, using jquery is not necessary for redirection,
you can use pure javascript to preform that :
window.location.replace("http://stackoverflow.com");

No comments :

Post a Comment