开发者

Scroll iframe parent

How to get

$(window).scroll(function(){
  // window scroll
});

in the parent window...

I thought something like 开发者_开发知识库window.parent.$(window) or $(window, document.parent) or etc, but this not working

I have an application in Google open social iframe and I want to get scroll() of main window.


Try $(window.parent.window).scroll(); or just $(window.parent).scroll();

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜