HtmlDocument.ActiveElement Property
Provides the HtmlElement which currently has user input focus.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms.HtmlElementThe HtmlElement which currently has user input focus.
When the document has focus, but no element of the document has been given focus, ActiveElement returns the element corresponding to the <BODY> tag.
If the document does not have focus, ActiveElement returns null.
If the current element with input focus is a cell (TD) in an HTML TABLE tag, ActiveElement will return the element that contains the TABLE element.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.