JS Detect Scroll

window.onscroll = function (e) {  
// called when the window is scrolled.  
} 
Borma