in actionscript there is an onSetFocus which is equivalent to javascript onfocus but in actionscript there is also an onKillFocus (when the focus of something leaves).

I have a text box that says [enter some text]

i use javascript and onfocus to remove that text when the text field it selected.

however when the user clicks away (or kills focus) I want to check to see if they actually typed anything and if not to put the [enter some text] back in place.

i tried onchange but i guess that only works if the user changes it not if javascript changes it.

so is there something like what I am looking for?

Thanks.