javascript check if url contains param code example
Example: jquery check if url contains string
//If URL contains "mystring"
if (window.location.href.indexOf("mystring") > -1) {
}
//If URL contains "mystring"
if (window.location.href.indexOf("mystring") > -1) {
}