Onscroll, make a action
Is it possible to detect when a user is scrolling on a facebook canvas application (In a iframe). So i can m开发者_高级运维ake an action when the user scrolls down on the page.
You can go for the jQuery API and try out their scroll() event to detect the mouse scroll...
UPDATE
$(window).load(function(){
$($('iframe').contents()).scroll(function(){
alert('frame scrolled in jquery');
});
});
Yes. You can detect it through the event listener "DOMMouseScroll". This page provides a good example of working with it.
精彩评论