title: Is it possible to set style in cross domain iframe tag from within the iframe using jQuery or other?
body: <p>I'm trying to set <code>style="width:100%"</code> in the iframe tag using jQuery or some other scripting language.</p>
  
  <p>The script would reside in the content of the iframe which is on another domain.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;iframe src="domain 2" id="domain 1"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>The script on domain 2 inside the iframe page would style the tag of the iframe which is located on domain 1.</p>
  
  <p>Is this possible with some kind of scripting language that can bypass security checks and origin policy?</p>
  
  <p>More details: I have access to the content within the iframe and can control what is displayed in it. But I do not have access to the iframe tag, so I am not able to style it directly.</p>
  
  <p>So I need to figure out how to do it from within the iframe. Setting body, html width 100% doesn't set the iframe in the parent page to 100%.</p>
  
  <p>Any ideas?</p>