1

Hello I am trying to iframe this element https://allnepaliconverter.com/ok/demo_iframe.html but they keyboard doesn't seem to be iframed .

html code is as follows

<!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>
Kush Patel
  • 2,901
  • 4
  • 32
  • 53

2 Answers2

2

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.

rabsom
  • 272
  • 1
  • 7
  • One possible workaround would be to reproduce the page on your site : get the scripts, reproduce the html... – rabsom Sep 16 '17 at 10:41
0

May be keyboard is iframe loaded by javascript from same origin. Browsers block scripts trying to access a frame with a different origin.