title: javascript scroll to parent over http and https using javascript
body: <p>I have a secure (https) iFrame within a non-secure (http) page. When the user clicks on link in the iFrame, a new iFrame page loads.</p>
  
  <p>However, because the first iFrame page is quite long, when it moves to the next page the parent page is still scrolled to the bottom. I use the code-</p>
  
  <pre><code>parent.scrollTo(0,0);
  </code></pre>
  
  <p>and it works, but not when the iFrame page is running over https.</p>
  
  <p>I get the error (Firefox)-
  <em>Permission denied for <a href="https://www.example.com" rel="nofollow">https://www.example.com</a> to get property Window.scrollTo from <a href="http://www.example.com" rel="nofollow">http://www.example.com</a></em></p>
  
  <p>I think this is to stop xss attacks. I'm sure I've done a workaround to this before in javascript? Or is there a way I can set "allowed domains" on the parent page?</p>