need to run javascripts on iframe which loads an external domain

后端 未结 2 511
南旧
南旧 2021-01-16 02:22

mysite.com has an iframe which loads some differentsite.com.

need to run javascript on this loaded iframe document.

Single Or

2条回答
  •  悲&欢浪女
    2021-01-16 02:50

    The first question would be, do you have control over the secondary domains, or are you able to persuade the webmasters of these to add additional components?

    If so you could easily use easyXDM to call methods across the domain boundry. Demos of this can be viewed here

提交回复
热议问题