Iframe Errors Ahoy
Iframe Errors Ahoy
下面的iframe是为适应其内容而设计的。它适用于Firefox,但不适用于Chrome。
<iframe src="Splash.html" seamless=true width=99% height=100% scrolling=no name="Content" id="Content" onload="this.height = this.contentWindow.document.body.scrollHeight + 10;">
</iframe>
当页面在Chrome中加载时,我会收到以下错误:
Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match. Index.html:35
Uncaught TypeError: Cannot read property 'body' of undefined
当我专门使用onload事件时,为什么它会认为iframe是未定义的?我对网页设计相当陌生;如果问题很明显,请原谅我。
尝试不使用真正的东西:
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_iframe_seamless
相关文章:
- errors with Javascript try catch
- http://errors.angularjs.org/1.4.1/ngRepeat/dupes
- ng路由injectore:modulerr中出错[$injector:modulerr]http://errors.a
- Bad Errors for PropType (React)
- Do JS Reference Errors停止运行时线程执行
- Javascript DOM errors
- Chrome javascript errors
- JSONP and DOCTYPE Errors
- JSON Stringify & AJAX parse errors
- 由于以下原因,无法实例化模块 myApp:错误:[$injector:nomod] http://errors.angu
- JSLint errors on 'new function(){..}'但为什么呢?如果我想要匿名关闭
- IE7/8 Javascript Errors
- 当我调用“viewModel.errors().length”时,会触发假错误消息
- Errors with socket.io?
- 在多个控制器中的 select 指令上公开自定义$errors
- IE8 Errors On chart.destroy()
- Iframe Errors Ahoy
- 如果javascript中的errors标记为空,则希望重定向用户
- 有没有一种方法可以用Rspec/Capibara/Selenium将javascript console.errors打
- 类似facebook的按钮和IE8:errors javascript