Re: cursor focus
| From: | Gaylen Fraley | Date: | Sun, 03 Mar 2002 04:32:08 +0000 |
| Subject: | Re: cursor focus | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86948@lists.php.net to get a copy of this message | ||
This is not a php question. It is a JavaScript issue. You need to add this
code to the bottom of your page:
<script>
document.forms[0].text_box_name.focus();
</script>
--
Gaylen
PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
"Ralph Jarvis" <jarvis@mdc-tech.gnb.ca> wrote in message
news:20020303011853.59219.qmail@pb1.pair.com...
> This is really a newbie question, but here goes.....
>
> I am running PHP4 with Apache on Redhat 6.2.
>
> I am sure I read this somewheres, but can't find it again. When I open a
> webpage in a small password application that I wrote, the cursor is not on
> the first text box I need to fill in, I need to click on the text box to
> begin typing. How do I get the cursor to "focus" on this text box?
>
> Many thanks in advance
>
> Ralph
>
>
>