“Access is denied” error on accessing iframe document object

后端 未结 7 1291
生来不讨喜
生来不讨喜 2020-12-05 02:35

For posting AJAX forms in a form with many parameters, I am using a solution of creating an iframe, posting the form to it by POST, and then accessing the

相关标签:
7条回答
  • 2020-12-05 03:37

    I know this question is super-old, but I wanted to mention that the above answer worked for me: setting the document.domain to be the same on each of the pages-- the parent page and the iframe page. However in my search, I did find this interesting article:

    http://softwareas.com/cross-domain-communication-with-iframes

    0 讨论(0)
提交回复
热议问题