title: Getting the title of a page in an iFrame
body: <p>I'm trying to get the title of a page in an iFrame. I did look at some other questions on stackoverflow and found the following code:</p>
  
  <pre><code>var title = $("#frame").contents().find("title").html();
  alert(title);​
  </code></pre>
  
  <p>I though it should work.</p>
  
  <p>But here on my <a href="http://jsfiddle.net/shawn31313/6TAhg/" rel="nofollow">jsfiddle</a> the code doesn't seem to work. Can anyone explain to me why it wont work, and give me a suggestion of how I would get this to work. Thanks!</p>