indexOf in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8993773/javascript-indexof-case-insensitive">Javascript indexOf case insensitive</a>  </p>
</blockquote>



<p>how to use IndexOf in javascript to search a key in a string without taking in mind if the key is in lower case or upper case</p>

<pre><code>&lt;script type="text/javascript"&gt;
 var s = "hello world";
 var key="HELLO";
 // the alert should say found if key is lower case or upper case     
 if(s.indexof(key)&gt;1) alert("found") 
 &lt;/script&gt;
</code></pre>

<p>Is their any function in javascript that can check if the key is lower or upper case </p>
