开发者

Have a child window be notified when parent window goes to a different page?

i have a parent window and a child window. in javascript, i want a function in child window to be called whenever the parent window loads a new page. i'd like to use something similar to jQuery's $(document).ready() so that I don't have to worry about whether the parent is done loading yet - but ready() only a开发者_StackOverflow中文版ppears to fire when the window loads the first page - but not when, say, a link is clicked in the parent and it loads a second page.

any suggestions? thanks.


Handle the parent window's unload event.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜