Hi there,
I have a DIV that has a vertical scroll bar within an html page. (the main HTML page has its own scrollbar as well).
I was trying to make it so that when a user clicks within a div and then scrooll, it scrolls the content within the div, and not the main HTML scrollbar (and when the user clicks outside of it, it scrolls the main HTML).
Is there a way to do this in javascript?
I have a DIV that has a vertical scroll bar within an html page. (the main HTML page has its own scrollbar as well).
I was trying to make it so that when a user clicks within a div and then scrooll, it scrolls the content within the div, and not the main HTML scrollbar (and when the user clicks outside of it, it scrolls the main HTML).
Is there a way to do this in javascript?