title: Is it true that IE7 doesnt support indexOf javascript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11544983/indexof-function-on-an-array-not-working-in-ie7-8-using-javascript">.indexOf function on an array not working in IE7/8 using JavaScript</a>  </p>
  </blockquote>
  
  
  
  <p>Im developing for IE7 and have some troubles with the javascript function indexOf.</p>
  
  <p>After browsing some sites I read that IE7 doesnt support indexOf. Is this correct, and if so, whats the easiest way to check if a string contains a given string?</p>
  
  <pre><code>var test = window.location.toString();
  test = test.toLowerCase();
  var idString = "28A3CASDGAGHTSDASF34134";
  idString = idString.toLowerCase();
  if(test.indexOf(idString) &gt; 0){
    alert('worked');
  }
  </code></pre>
  
  <p>Edit:
  Most likely some coding error by myself</p>