I have this code below but I want it to stop going through the loop once it finds one or more strings. That way the div will still be hidden.
Thanks for the help!
var checkURL = ["fish","dog","cat","bird"];
for (var i = 0; i < checkURL.length; i++) {
if(window.location.href.indexOf(checkURL[i]) > -1) {
// keep div hidden
} else {
// show div
}
}