title: How do I have JavaScript target an iframe?
body: <p>I have a page with <strong>2 iframes</strong> and i was wondering if it was possible to have a link in the parent window that affects the iframe. </p>
  
  <p>I know how to make a normal link that changes the page in the iframe but I need to make I, that it activates JavaScript into the iframe.</p>
  
  <pre><code>// The JS | normally in one line
  javascript:var%20KICKASSVERSION='2.0';
  var%20s%20=%20document.createElement('script');
  s.type='text/javascript';document.body.appendChild(s);
  s.src='//hi.kickassapp.com/kickass.js';
  void(0);
  </code></pre>
  
  <p>If you put that into an address bar it works without changing the page but I was wondering if this is possible in an iframe. Thanks!</p>