title: Access iFrame URL with JQuery / Javascript
body: <p>I have a page like this...</p>
  
  <pre><code>&lt;div&gt;
  &lt;iframe id="mainContent"&gt;
  &lt;iframe id="littleBox"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and I want to do this...</p>
  
  <pre><code> $(".someButton").live('click', function() {
         alert(/*The URL That the Main Frame is ON*/);
   });
  </code></pre>
  
  <p>I found this: <code>$("#mainFrame").get(0).location.href</code>, but it doesnt work...</p>
  
  <p>Also, I need it to return the current url, so if someone navigates around it should return the current page they are on.</p>