title: simple javascript search() function is not working
body: <p>I am trying to find some string part in another string. And I found a function called <code>search()</code> and tried this: </p>
  
  <pre><code>if("http://www.google.de".search("http://") &gt; 0){
    alert('with http');    
  } else {
    alert('no http');   
  }
  </code></pre>
  
  <p>but it is giving me <code>no http</code> even if it has <code>http://</code> part in it. here is the fiddle:
  <a href="http://jsfiddle.net/xXTuY/2/" rel="nofollow">http://jsfiddle.net/xXTuY/2/</a></p>
  
  <p>can you please help me out? </p>