title: iFrame and Javascript to parent document
body: <p>I have an iFrame with an external website. I know about the same domain rule, so I am trying to invoke some javascript via the <code>src</code> to the parent. Currently I have:</p>
  
  <pre><code>&lt;iframe id="my_frame" src="http://other.com"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>and I change the <code>src</code> using javascript as follows:</p>
  
  <pre><code>&lt;iframe id="my_frame" src="javascript:document.write("blah");"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>but using the <code>parent</code> does not work:</p>
  
  <pre><code>&lt;iframe id="my_frame" src="javascript:parent.document.write("blah");"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Does the same domain rule also apply for the parent or am I doing something wrong?</p>