I'm trying something like this:
<textarea onFocus = "myFunction(1)" onBlur = "myFunction(0); return submitform();">
Is this possible?
I'm trying something like this:
<textarea onFocus = "myFunction(1)" onBlur = "myFunction(0); return submitform();">
Is this possible?
Yes but the syntax is wrong, see this edited textarea:
<textarea onfocus="myFunction(1);" onblur="myFunction(0); return submitform();">
^------ ^-------- small letter is important
A yet better way would be to attach jQuery event handlers, or similiar with a different preferred framework.
onFocus is invalid: You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element.html not xhtml.