Nested iframe communication using contentWindow and window parent

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024
  • In this video I have explained a very simple way of communicating two iframes using contentWindow and window.parent .

Комментарии • 4

  • @khushbooraj779
    @khushbooraj779 27 дней назад

    Very informative

  • @andrewpravin9664
    @andrewpravin9664 5 лет назад +1

    Thank you
    this is very much useful.can you please attach the code

  • @IzludeTingel
    @IzludeTingel 4 года назад

    I'm stuck... here's my setup (adobe animate canvas):
    main clip, frame 2 spawns 0 with mkdiv
    0 frame 1 spawns 1 with mkdiv
    1 has a button and when I press it, I want it to move the timeline of 0 forward by 1. same website, same domain. how do I do this? (looking for a ready to copy/paste/use code, others have tried suggesting postMessage(); but I can't seem to get it to work...
    also in the mix, i seem to be required to post window.parent most of the time, see if that info is useful if you have an answer :)