Re: Cursor in text box.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John W. Holmes wrote:

matthew perry wrote:

My users complain about everything. The most common is "Why do I have to move the mouse over to this box every time? Waaaah!"
How do I get the cursor to que into the first input area of my form?


JavaScript, not PHP.

document.yourform.yourtextbox.focus(), I think.


Here's a more cross-browser way: document.forms["formName"].elements["elementName"].focus();

--
paperCrane <Justin Patrin>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux