On Tue, 13 Nov 2001, Justin Howell wrote:

> I'm working on a perl script using CGI.pm and had some general
> questions.  Is there a way to set the focus (ie put the cursor) in a
> text input field on page load?  And when I finish typing in that field
> and hit enter, for it being the same as hitting submit?  I couldn't
> find anything about that in the books I have.

That sounds like a JavaScript thing -- things like focus and keyboard
control have to be handled by the client, not on the server.  Hitting
enter will only work if the submit button is the next in the tab order, I
believe, but that may be browser dependent.  At any rate, you can't solve
the problem with server-side Perl.

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
I'm having a MID-WEEK CRISIS!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to