title: How can I prevent an iframe from accessing parent frame?
body: <p>I've got a page with an iframe. The page and the source of the iframe are in different domains. Inside the iframe I'm using a rich text editor called CuteEditor (which has turned out to be not so cute). There are certain javascript functions in CuteEditor which try to access 'document' but the browser denies access since they're not in the same domain.</p>
  
  <p>Here's the exact error:</p>
  
  <blockquote>
    <p>Permission denied to access property 'document'
    <a href="http://dd.byu.edu/plugins/cuteeditor_files/Scripts/Dialog/DialogHead.js" rel="noreferrer">http://dd.byu.edu/plugins/cuteeditor_files/Scripts/Dialog/DialogHead.js</a>
    Line 1</p>
  </blockquote>
  
  <p>Editing the javascript is out of the question because it's been minfied and obfuscated so all the variable names are cryptic.</p>
  
  <p>Using a different editor is currently out of the question because this is a work project and this is the editor I've been told to use.</p>
  
  <p>Is there a way to keep the iframe self-contained? So it does everything inside the iframe and doesn't try to break out to the parent frame?</p>