Check documentation for the latest version 6.0 of dhtmlxSuite onFocus DHTMLX Docs

onFocus

fires when an input gets focus

void onFocus(string name,string value){ ... };

Parameters

namestringitem name
valuestringitem value (for radios only)

Example

//for radios and checkboxes
myForm.attachEvent("onFocus", function(name, value){
    //your code here
});
 
//for other controls
myForm.attachEvent("onFocus", function(name){
    //your code here
});

Back to top