Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy onmousewheel attribute</title> </head> <body> <p onmousewheel="mouseWheel(this)"> Scroll mouse wheel to check onmousewheel Event.<br> Learn to Code in Wikitechy.</p> <script> function mouseWheel (obj) { obj.style.color = "red"; } </script> </body> </html>
Result