How to call javascript in main window from iframe?

后端 未结 2 408
渐次进展
渐次进展 2021-01-24 12:33

How to call javascript in main window from iframe?

相关标签:
2条回答
  • 2021-01-24 12:47
    window.parent.whatever
    
    0 讨论(0)
  • 2021-01-24 12:57
    window.top.foo 
    

    for the top level window

    window.parent.foo
    

    for the direct parent

    0 讨论(0)
提交回复
热议问题