--- title: document.activeElement slug: Web/API/Document/activeElement tags: - Référence_du_DOM_Gecko translation_of: Web/API/DocumentOrShadowRoot/activeElement translation_of_original: Web/API/Document/activeElement original_slug: Web/API/DocumentOrShadowRoot/activeElement --- {{ ApiRef() }} ### Résumé Renvoie l'élément qui dispose actuellement du focus. {{ Note("Cet attribut fait partie de la spécification HTML 5 encore en développement.") }} ### Syntaxe var elemCourant = document.activeElement; ### Exemple ### Spécification - [Focus management](http://www.whatwg.org/specs/web-apps/current-work/#focus-management) (brouillon de travail HTML 5)