javascript check if string contains link code example
Example: js check if string contains character
if (your_string.indexOf('hello') > -1)
{
alert("hello found inside your_string");
}
if (your_string.indexOf('hello') > -1)
{
alert("hello found inside your_string");
}