ZennoLab Assemblies Documentation
Focus Method
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : Focus Method
Sets input focus to the html element.
Syntax
public void Focus()
Example
The following code example demonstrates uses of the Focus method.
// find element by attribute
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// focus on this element
he.Focus();
// find element by attribute
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// focus on this element
$he->Focus();
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

HtmlElement Class
HtmlElement Members
RiseEvent Method