Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Can';我不能在我的网站上创建一些页面_Javascript_Wordpress_Iframe - Fatal编程技术网

Javascript Can';我不能在我的网站上创建一些页面

Javascript Can';我不能在我的网站上创建一些页面,javascript,wordpress,iframe,Javascript,Wordpress,Iframe,您好,我正在尝试iframe此元素,但它们的键盘似乎没有iframe html代码如下 <!DOCTYPE html> <html> <title>Virtual Keyboard</title> <meta name="robots" content="noindex, nofollow"> <script type="text/javascript" src="vk_iframe.js?vk_skin=goldi

您好,我正在尝试iframe此元素,但它们的键盘似乎没有iframe

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>

虚拟键盘

使用鼠标或硬件键盘设备从下面的键盘输入

如果您查看控制台,您应该会看到:

Uncaught DOMException: Blocked a frame with origin "https://allnepaliconverter.com" from accessing a cross-origin frame.
这就解释了为什么键盘不打印。
查看完整的解释和可能的解决方法

可能是键盘是由相同来源的javascript加载的iframe。浏览器会阻止试图访问不同来源的框架的脚本。

测试页面在iframe中的位置在哪里?一个可能的解决方法是在站点上复制页面:获取脚本,复制html。。。