I have one button in a div tag. That div tag also has a vertical scroll bar.
If I scroll that bar and click on the button which is inside that div, it should return the scroll position as an alert message.
How to do that using JavaScript?
I have one button in a div tag. That div tag also has a vertical scroll bar.
If I scroll that bar and click on the button which is inside that div, it should return the scroll position as an alert message.
How to do that using JavaScript?