Altjen B. Altjen B. - 3 months ago 19
Javascript Question

how can I use focus function and calling a javascript function in

I call a function when press the textbox. this is the code for that


but only when click on the textbox. but if I move with TAB it wont call GetColorBack function.

how can I do that?

PS: not the CSS focus type


For "vanilla"-javascript use onclick="GetColorBack()" onfocus="GetColorBack()"

I think onfocus="GetColorBack()" will be enough, cause clicking lead to focus-event