Calling a function in parent file from child frame?

后端 未结 1 725
情书的邮戳
情书的邮戳 2020-12-19 14:45

I have a function that resizes the col width ratio of my frameset in \"frame.html\":



        
相关标签:
1条回答
  • 2020-12-19 15:19

    Just try parent.functionName() it should work.

    Edit


    Just to be sure that the scope is correct you should probably call window.parent.functionName() instead to be sure that it is actually the frames parent that is referenced

    Edit 2


    Check out this answer it seems to handle the same chrome issue.

    Hope it helps!

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