Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery check if url contains string

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

}
 
PREVIOUS NEXT
Tagged: #jquery #check #url #string
ADD COMMENT
Topic
Name
6+3 =