Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Thomas Handel on Dec 21, 2007 08:06
open dhtmlx forum
Using the event onfocus

Hi,

I'm trying to use the onfocus event with dhtmlXCombo's, but the event is fired on page load, not on focus.

comboObj.attachEvent("onFocus",function(event){
alert('hallo');
})

Is there a way to call a function when entering the combobox ?

Thomas.
Answer posted by Support on Dec 21, 2007 09:38
There is no such element event, but you can use native DOM event
   
    comboObj.DOMelem_input.onfocus=function(event){
        //    any code here
    }