title: Get iframe src param from inside the iframe itself
body: <p>i have an iframe and need to capture the src attribute inside a javascript variable. This is how my iframe looks like</p>
  
  <pre><code>&lt;iframe id="iframe_module_46081" name="iframe_module_46081" src="//myurl.com/tabs/495/campaigns/0ed3ffa8-5050-4a18-a5e3-f348d12a1304?signature=6aa3005368f163539976460246f2f0839c0fb3e3&amp;amp;id=678326"&gt;
  &lt;script&gt;$(document).ready(function(){
    var name = window.name;
    var src = ????;
  })
  &lt;/script&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>I am able to get the name through window.name but not the src attribute. Any idea?</p>