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 Link to comment https://forums.phpfreaks.com/topic/156674-make-cursor-reappear-in-form-field/ Share on other sites More sharing options...
Ken2k7 Posted May 3, 2009 Share Posted May 3, 2009 onblur="send(); this.focus();" Try that? Link to comment https://forums.phpfreaks.com/topic/156674-make-cursor-reappear-in-form-field/#findComment-825012 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.