Please help.
I have a simple problem that i just cant sort out.
In a form, I have a text field and a button field. When someone clicks on the text field the normal behaviour is for the button to be slected.
I want to blur the button when the text field is selected.
I have tried the 2 examples below but neither works.
Any ideas?
ATTEMPT 1:
<form>
<input type="text">
<input type="submit" name="mybutton" onfocus="document.myform.mybutton.blur()";>
</form>
ATTEMPT 2:
<form>
<input type="text">
<input type="submit" onfocus="this.blur()";>
</form>
many thanks.
I have a simple problem that i just cant sort out.
In a form, I have a text field and a button field. When someone clicks on the text field the normal behaviour is for the button to be slected.
I want to blur the button when the text field is selected.
I have tried the 2 examples below but neither works.
Any ideas?
ATTEMPT 1:
<form>
<input type="text">
<input type="submit" name="mybutton" onfocus="document.myform.mybutton.blur()";>
</form>
ATTEMPT 2:
<form>
<input type="text">
<input type="submit" onfocus="this.blur()";>
</form>
many thanks.