title: jQuery if document title indexof matches string
body: <p>So basically if document caption matches exactly, do something.</p>
  
  <p>I am trying with <code>indexOf</code> but it keeps going on no matter what is the page title.</p>
  
  <p>For example, on this very page, I  want it to go on only when document caption is <strong>if statement - jQuery if document title indexof matches string - Stack Overflow</strong> (which it is now):</p>
  
  <pre><code>if (document.title.indexOf("if statement - jQuery if document title indexof matches string - Stack Overflow") === -1){
      alert("Hello! I am an alert box!!");
  }
  </code></pre>