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
https://forums.phpfreaks.com/topic/156674-make-cursor-reappear-in-form-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.