[英]Can't iframe some pages of my website
Hello I am trying to iframe this element https://allnepaliconverter.com/ok/demo_iframe.html but they keyboard doesn't seem to be iframed . 您好,我正在尝试对这个元素进行iframe https://allnepaliconverter.com/ok/demo_iframe.html,但它们的键盘似乎并没有被iframed。
html code is as follows html代码如下
<!DOCTYPE html>
<html>
<title>Virtual Keyboard</title>
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript" src="vk_iframe.js?vk_skin=goldie&vk_layout=IN Devanagari" ></script>
</head>
<body>
<form action="no.cgi" method="get"><strong>
<p style="color: red;font-family: sans-serif;"> Enter From The Keyboard Below Using Mouse Or Your Hardware Keyboard Device </p></strong>
<textarea id="text" cols="72" rows="10" wrap="soft" onfocus="IFrameVirtualKeyboard.attachInput(this)"></textarea>
<div id="td"></div>
<body onload="IFrameVirtualKeyboard.toggle('text','td'); return false;" >
</form>
</body>
</html>
If you look at your console, you should see : 如果您查看控制台,应该会看到:
Uncaught DOMException: Blocked a frame with origin "https://allnepaliconverter.com" from accessing a cross-origin frame.
This explains why the keyboard does not print. 这说明了为什么键盘无法打印。 Have a look here for full explanation and possible workarounds.
在这里查看完整的解释和可能的解决方法。
May be keyboard is iframe loaded by javascript from same origin. 可能是键盘是由同一来源的javascript加载的iframe。 Browsers block scripts trying to access a frame with a different origin.
浏览器会阻止试图访问具有不同来源的框架的脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.