Below is a sample code snippet demonstrating how to search for a string using js indexof method.
var input = "This is a Ginktage.com blog post."; var value = str.indexOf("Ginktage.com");
The result of value will be 10.
Enter your email address to subscribe to this blog and receive notifications of new posts by email.