Possible Duplicate:
Javascript indexOf case insensitive
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
<script type="text/javascript">
 var s = "hello world";
 var key="HELLO";
 // the alert should say found if key is lower case or upper case     
 if(s.indexof(key)>1) alert("found") 
 </script>
Is their any function in javascript that can check if the key is lower or upper case
 
     
     
     
     
    