asp.net.ph

Skip Navigation Links

activeElement Property

document Properties   Object Properties Summary


Retrieves the object that currently has the keyboard focus.

Syntax


HTML N/A
Script [ oActive = ] document.activeElement

Possible Values


oActive Object that represents the currently selected object on the page.

The property is read-only with no default value.

Remarks

The property returns the currently active object on the page with respect to keyboard navigation and keyboard input. Its value is set when you select a control on the page or use the focus method.

Applies To

document



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note