execute javascript function in a another iframe when parent is from different domain

后端 未结 4 713
谎友^
谎友^ 2021-01-05 15:59

The page A.com has 2 iframes B.com/page1 and B.com/page2. This is the code of A.com:



        
4条回答
  •  囚心锁ツ
    2021-01-05 16:31

    As Aaron have already told you, browsers don't allow this, but there are ways around it. You'll need to create a small hack. Eugene Gladyshev has a post on it on his blog.

提交回复
热议问题