window.scrollTo(0,99999);
var x = (document.all ? document.scrollLeft : window.pageXOffset);
var y = (document.all ? document.scrollTop : window.pageYOffset);
alert("Х = "+y+" Y = "+y);
but it is does not work for div scrollbar, what I can do?
JQuery, I have scrollbar in div, how can I get his (current) coordinates X and Y?
Started by Stasonix, May 13 2011 04:42 AM
No replies to this topic
#1
Posted 13 May 2011 - 04:42 AM
For getting coordinates of scrollbar of the document I am using this:
|
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









