--- title: Element.onwheel slug: Web/API/GlobalEventHandlers/onwheel tags: - API - DOM - Gestionnaires d'évènements - Propriété - évènements translation_of: Web/API/GlobalEventHandlers/onwheel original_slug: Web/API/Element/onwheel --- {{ ApiRef("DOM") }} La propriété `onwheel` renvoie le code du gestionnaire d'évènements `onwheel` de l'élément courrant. ## Syntaxe ```js element.onwheel = function() { .. } ``` ## Spécification | Spécification | Statut | Commentaire | | ------------------------------------------------------------------------------------------------ | -------------------------------- | ----------- | | {{SpecName('HTML WHATWG','webappapis.html#handler-onwheel','onwheel')}} | {{Spec2('HTML WHATWG')}} |   | ## Compatibilité des navigateurs {{Compat("api.GlobalEventHandlers.onwheel")}} ## Voir aussi - [Document: `wheel` event](/fr/docs/Web/API/Document/wheel_event) - [Element: `wheel` event](/fr/docs/Web/API/Element/wheel_event)