I need to create a form element
<input disabled type="text" value="smth" />
which is disabled by default. It enables when onmouseover occures.
onmouseover="this.disabled=false;"
And is disabled by onmouseout
onmouseout="this.disabled=true;"
What I need is to check the following.
If the <input> is focused then it shouldn't be disabled.
And if the form element loses focus it disables.
Please help me to complete the events.
<input disabled type="text" value="smth" onmouseover="this.disabled=false;" onfocus="???" onblur="???" onmouseout="if(???){this.disabled=true;}" />