title: Error trying to access a iframe in JavaScript
body: <p>I'm trying to call the function SC.Widget from this little API: <a href="http://developers.soundcloud.com/docs/api/html5-widget" rel="noreferrer">http://developers.soundcloud.com/docs/api/html5-widget</a>, but I receive this error message in the Chrome inspector and I am stuck there.</p>
  
  <blockquote>
    <p>Unsafe JavaScript attempt to access frame with URL
    <code>file://localhost/Users/maxwell/Desktop/test/test.html</code> from frame withURL</p>
    
    <p><code>http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F67825032&amp;auto_play=false&amp;show_artwork=true&amp;color=ff7700</code>.</p>
    
    <p>The frame requesting access has a protocol of 'http', the frame being
    accessed has a protocol of 'file'. Protocols must match.</p>
  </blockquote>
  
  <pre><code>&lt;body&gt;
      &lt;iframe id="soundcloud" width="100%" height="166" scrolling="no" frameborder="no"
      src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F67825032&amp;amp;auto_play=false&amp;amp;show_artwork=true&amp;amp;color=ff7700"&gt;&lt;/iframe&gt;
      &lt;script&gt;
          Soundcloud();
      &lt;/script&gt;
  &lt;/body&gt;
  
  
  function Soundcloud() {
      var widget1 = SC.Widget(iframeElement.soundcloud);
      alert("widget1");
  }
  </code></pre>
  
  <p>I know it's doing this for security reasons, but how do I modify the SoundCloud widget if I can't access the frame?</p>
  
  <p>Thank you for helping!</p>