Possible Duplicate:
JavaScript: string contains
I have a simple question for you. I have a variable with my url. Now i want check this url. I make this javascript:
var url = "http://www.mikevierwind.nl";
if(url == "localhost" ) {
alert("test");
}
How can i make the follow thing. When mikewind is in variable. Than run it. The variable can also be mikevierwind.be and mikevierwind.eu. But the script must always than run. I must check of mikevierwind is in the variable.