CSS Portal
Run
Search
« Back to
HTML onmousewheel Event Attribute
<!DOCTYPE html> <html> <head> <title>onmousewheel event</title> <style> div { border: 1px solid; } </style> </head> <body> <p>To demonstrate the onmousewheel event attribute, use the mouse wheel on the element:</p> <div id="wheeee" onmousewheel="wheeee()">The quick brown fox jumps over the lazy dog</div> <script> function wheeee () { document.getElementById("wheeee").style.fontSize="35px"; document.getElementById("wheeee").style.color="blue"; } </script> </body> </html>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee