Can anyone tell me if there's a way to detect focus on an object?
I have a form with several textareas and I need to know in which the user is typing.
I can use the onfocus event but how do I transfer the info from that event to a function that will be used later.
Example: post a new message on this forum and click the b button for bold text. This will add the necessary ibcode to the one and only text area. I however have two textareas so which one is used when pressing b?
Question
Redmak Administrators
Can anyone tell me if there's a way to detect focus on an object?
I have a form with several textareas and I need to know in which the user is typing.
I can use the onfocus event but how do I transfer the info from that event to a function that will be used later.
Example: post a new message on this forum and click the b button for bold text. This will add the necessary ibcode to the one and only text area. I however have two textareas so which one is used when pressing b?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts