jquery if url contains parameter 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) {
}