Click to return to the Reusing Browser Technology home page    
IHTMLElement2::doScroll M...     IHTMLElement2::get_access...     IHTMLElement2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement2::focus Method


Causes a control to receive the focus, and executes the code specified by the onfocus event.

Syntax

HRESULT focus(void);

Return value

Returns S_OK if successful, or an error code otherwise.

Remarks

This method fires the onfocus event.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.