galvin Posted May 3, 2009 Share Posted May 3, 2009 I have this simple one field form where I use onBlur to make the form submit when a user hits ENTER. This works fine but I need to cursor to reappear in that field after they hit ENTER. Right now, they hit ENTER and they'd need to click into the field so they can type again. I want the cursor to just be there so the user doesn't have to click into the Field. I assume I have to use onLoad and onFocus but I can't get it to work. Can anyone help (im sure this is super easy)... <form id='form' name='answerfield' action='purephp.php' method='post'> Answer: <input type='text' onBlur='send()' name='userinput' id='userinput' /> </form>"; How do Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 3, 2009 Share Posted May 3, 2009 onblur="send(); this.focus();" Try that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.