cursor in input-window

In a page I present an input-window where the visitor has to type in a
word. In the present situation the visitor first has to click in that
window, before something can be written. I prefer the situation that
on presenting the page immediately can be typed into the window. How
can I make that in php?
Thank you
Anne Bos [ Do, 08 Februar 2007 19:23 ] [ ID #1623113 ]

Re: cursor in input-window

Anne Bos wrote:
> In a page I present an input-window where the visitor has to type in a
> word. In the present situation the visitor first has to click in that
> window, before something can be written. I prefer the situation that
> on presenting the page immediately can be typed into the window. How
> can I make that in php?

You don't, you use javascript.

--

//Aho
Shion [ Do, 08 Februar 2007 19:39 ] [ ID #1623114 ]

Re: cursor in input-window

Anne Bos wrote:
> In a page I present an input-window where the visitor has to type in a
> word. In the present situation the visitor first has to click in that
> window, before something can be written. I prefer the situation that
> on presenting the page immediately can be typed into the window. How
> can I make that in php?
> Thank you

You can't make it in php. You have to use javascript. Google javascript
focus

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
spam [at] outolempi.net | Gedoon-S [at] IRCnet | rot13(xvzzb [at] bhgbyrzcv.arg)
Kimmo Laine [ Do, 08 Februar 2007 19:37 ] [ ID #1623115 ]
PHP » alt.php » cursor in input-window

Vorheriges Thema: CGIWrap Error screen
Nächstes Thema: PHP Encryption Question