Event.clientX/Y and event.pageX/Y

Event.clientX/Y and event.pageX/Y

Both gives the position of the user event (onclick event position).
After scrolling also event.clientx/y has the old value.
After scrolling event.pageX/Y will have the different value.
Thanks for reading this post……….!!!

615 total views, 3 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.