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