javascript - Error: Permission denied to access property 'document' - while accessing content from iframe -


<!doctype html> <html>     <head>         <meta charset="utf-8">         <title>untitled document</title>         <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>     </head>     <body>         <iframe width="640px" height="590px" id="pagefrm" src="http://support.domain.com/controller/method"></iframe>         <script>             $(window).load(function() {                 $("#pagefrm").contents().find("body").append("hi");             });         </script>     </body> </html> 

in above code, trying append text or scripts parent page. when ever use .append(), .html(), .prepend() etc. using jquery, returning error - error: permission denied access property 'document'.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -