【问题标题】:"SCRIPT5: access denied" Message in Microsoft EdgeMicrosoft Edge 中的“SCRIPT5:访问被拒绝”消息
【发布时间】:2015-11-23 19:09:51
【问题描述】:

我在 Microsoft Edge(版本 20.10240.16384.0)中收到以下错误:

SCRIPT5: access denied message in edge

这是我的代码:

function getFrame( width, height ) {
    document.getElementById( this.contentid ).style.display = "none";
    this.frame = eval( this.editorid );
    return this.frame;
}

function init( width, height ) {
    this.frame = this.getFrame( width, height );
    this.doc = this.frame.document;  // <-- error
    // ~~~
}

父域和子域相同。此外,Edge 似乎不支持eval

【问题讨论】:

  • 您能否将我们链接到显示问题的在线资源?
  • 我在这段代码中发现了一个错误。 : textarea.parentNode.insertBefore(iframe, textarea);

标签: microsoft-edge


【解决方案1】:

这里的访问被拒绝消息是因为您正在尝试访问 iframe。

【讨论】:

  • 我找到了问题并修复了这个问题。因为 Edge 不支持 'document.charset'。
猜你喜欢
  • 2014-11-20
  • 2013-03-27
  • 1970-01-01
  • 2011-08-13
  • 2012-06-14
  • 1970-01-01
  • 2013-08-06
  • 2011-09-02
相关资源
最近更新 更多