HTML Tags JavaScript Tutorial

< html>
    
        OnScroll Example
        
            window.onscroll = function () {
                var oTextbox = document.getElementById("txt1");
                oTextbox.value += "\nscroll is at " + document.body.scrollLeft + " horizontally and " + document.body.scrollTop + " vertically.";
            }
        
    
    
         


         

Try scrolling this window.