Toolbar Input onFocus onBlur Event

I was surprised to find nothing on this in forums, docs, or samples. I have a input in a toolbar with a default value:

toolbar.addInput("dwgno", 20, "Drawing Number", 100);

“Drawing Number” is just a placeholder, when the user clicks into the field I want to remove that placeholder. So how do I apply an onFocus event? Also, when the user leaves the field, if they didn’t type anything, then I want to put the placeholder back, so I also need onBlur.

Thanks!

I found that this works. Is this how you would recommend I do it? Or is there a better way?

[code]dwgnoObj = toolbar.getInput(“dwgno”);

dhtmlxEvent(dwgnoObj, “focus”, function(ev){
alert(“Hello, world!”);
});

dhtmlxEvent(dwgnoObj, “blur”, function(ev){
alert(“Bye, world!”);
});[/code]

Hello
Yes, at present moment it is the only way to add this events.