title: During string search using window.find() a dialog box appear
body: <p>I am trying to search string and highlight those string. But during search a find dialog box appear. How can I disable the find dialog box ?
  Here is my code --></p>
  
  <pre><code>function doSearch(text) {
      if (window.find &amp;&amp; window.getSelection) {
          document.designMode = "on";
          var sel = window.getSelection();
          sel.collapse(document.body, 0);
  
          while (window.find(text)) {
              document.execCommand("HiliteColor", false, "yellow");
              sel.collapseToEnd();
          }
          document.designMode = "off";
      } else if (document.body.createTextRange) {
          var textRange = document.body.createTextRange();
          while (textRange.findText(text)) {
              textRange.execCommand("BackColor", false, "yellow");
              textRange.collapse(false);
          }
      }
  }
  </code></pre>