Cross domain iframe content load detection

前端 未结 6 1153
猫巷女王i
猫巷女王i 2020-12-01 11:22

I have a rather interesting problem. I have a parent page that will create a modal jquery dialog with an iframe contained within the dialog. The iframe will be populated wit

6条回答
  •  臣服心动
    2020-12-01 11:36

    You could try using postMessage for communication between frames.
    This will require the remote site to include some specific JavaScript to post a message to the parent document when it has finished loading.

提交回复
热议问题