title: How to check if the URL contains a given string?
body: <p>How could I do something like this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      if(window.location.contains("franky")) // This doesn't work, any suggestions?
      {
           alert("your url contains the name franky");
      }
  });
  &lt;/script&gt;
  </code></pre>