Answers for "if has url change url jquery"

9

jquery check if url contains string

//If URL contains "mystring"
if (window.location.href.indexOf("mystring") > -1) {

}
Posted by: Guest on June-05-2020
0

jquery url change

// Redirecting
$(window.location)[0].replace("https://www.google.it");
Posted by: Guest on October-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language