Visit Mozilla.org

DOM:document.activeElement

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns the currently focused element.

Note: This attribute is part of the in-development HTML 5 specification.

[edit] Syntax

var curElement = document.activeElement;

[edit] Example

[edit] Specification

Focus management