Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NETJavascript
hi..
i am trying to call javascript function on div scroll.i want to call javascript function when div scroll and get its current scroll position.provide solution.
thanx
Posted 12 Sep '12 - 21:02


2 solutions

var parentDiv= document.createElement("div");
           
            parentDiv.setAttribute("id", 'parentDiv');
 
parentDiv.onscroll = scrollfun;
 
function scrollfun() {
//my code
 
}
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 343
1 Sergey Alexandrovich Kryukov 138
2 Mohammed Hameed 123
3 Santhosh G_ 113
4 Ron Beyer 84
0 Sergey Alexandrovich Kryukov 8,266
1 OriginalGriff 6,516
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 13 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid