JavaScript if URL contains NeedleJavaScript / Von grenzgaenger if (window.location.href.indexOf("franky") > -1) { alert("your url contains the name franky");}