Answers for "jquery if url has variable"

7

jquery check if url contains string

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

}
Posted by: Guest on June-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language