title: alternative to indexOf in Javascript
body: <p>I have string as <code>this is test for alternative</code>. What I want to find is location of <code>for</code>. I know I could have done this using <code>alert(myString.indexOf("for"))</code>, however I don't want to use <code>indexOf</code>.</p>
  
  <p>Any idea/ suggestion for alternative?</p>
  
  <h2><a href="http://jsfiddle.net/rCn3Q/" rel="nofollow">jsfiddle</a></h2>
  
  <p>Again, I need this done by <strong>Javascript</strong> only. No jQuery.. sadly :(</p>