title: Jquery search text in iframe
body: <p>Can anyone help?</p>
  
  <p>i want to search a string inside an iframe like for example.
  i have a page called main.html which has an iframe and the contents of the iframe(somesite.com) has a string inside lets say "Home".
  what i want to happen is to have a script that will search the string "home" inside the iframe "#com" and will alert a message stating the string is found. i want this to be done with jquery and not with server side scripting. please note that somesite.com is an external site and i have no control over it.</p>
  
  <p><strong>main.html</strong>:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;input type="button" id="search" value="search"&gt;
  &lt;iframe id="com" src="http://somesite.com"&gt;&lt;/iframe&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>somesite.com</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  Home
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>sorry for the bad english, just comment if you have some clarifications.</p>