【问题标题】:calling a function in a javascript external file in a parent to an iframe在 iframe 的父级中调用 javascript 外部文件中的函数
【发布时间】:2011-07-29 21:08:12
【问题描述】:

如何调用添加到 iframe 父级的外部 javascript 文件中的 javascript 函数?我在 iframe 中尝试了parent.function(),但没有成功。

【问题讨论】:

标签: javascript jquery function iframe cross-domain


【解决方案1】:

尝试使用 window.parent.document

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-19
    • 2011-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-25
    相关资源
    最近更新 更多