Consider the following example:
HTML:
<div id="A">
<div id="B">
</div>
</div>
If a user hovers over element B and starts scrolling, we want to prevent the scroll event from affecting element A. How do we stop the scroll event from propagating?
UPDATE: I attempted this JavaScript code but it didn't work. Any suggestions?
document.getElementById("B").scroll = function(e) {e.stopPropagation();}