Cross sub domain iframes and JavaScript

后端 未结 3 509
借酒劲吻你
借酒劲吻你 2020-12-01 07:58

I am working on a CMS site whose domain is:

http://www.acmssite.com

They have a sub-domain where they store a form system:

         


        
3条回答
  •  没有蜡笔的小新
    2020-12-01 08:20

    You can still bypass this issue with the help of YQL even though you don't have access to the header part of the receiving window. With the Postmessage method also you need to edit the recipient window script. But using this method you can load any iframe without touching their scripts. Check this out! jsfiddle-link

    
    
    
    
    
    

提交回复
热议问题