开发者

Scroll iframe parent

开发者 https://www.devze.com 2023-02-21 06:53 出处:网络
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 n

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

精彩评论

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