|
-
having trouble with onSetFocus
I have searched far and wide, seen thousands of similar problems and thousands of solutions, and none of them are working for me.
I know it has to be simple, I have done it many times before, but this time it just won't work.
I am trying to remove text in an input text field when the text field gains the focus (from being clicked on)
So basically I have a username input text field, that says "Enter Username Here"
When it is clicked on I want this text to disappear...
I have tried many variations of the following:
Code:
username.onSetFocus = function() {
this.text = "";
};
Now... getting it to work in anyway possible will help a lot. Getting it to work within an external .as file will help even more, and getting it to work with an external .as file and with a var name and an instance name would be optimal.
Thanks guys.
If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|