HtmlDocument.Focused Property  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the document has user input focus.
public:
 property bool Focused { bool get(); };public bool Focused { get; }member this.Focused : boolPublic ReadOnly Property Focused As BooleanProperty Value
true if the document has focus; otherwise, false.