By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,028 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,028 IT Pros & Developers. It's quick & easy.

horizontal or vertical scrollbar

P: 3
In my page, I have both horizontal and vertical scroll bars.
I want to to some action on Vertical scrollbar click/move and some other action on horizontal scrollbar move/click. How to know whether the click is on horizontal or vertical scrollbar?
Sep 13 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,389
hi ...

you may have a look at the onscroll event ... and you may use the pageXOffset, pageYOffset properties to identify the scroll-direction ... (IE uses scrollLeft, scrollTop instead) ...

kind regards
Nov 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.