Jump to content

Make cursor reappear in form field?


galvin

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.