Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: [PEAR] how to make (using javascript or otherwise) cursor go to username field in AUTH when page
Hi,

The following will do it for you:

<script language="JavaScript">
<!-- Begin
function toForm() {
document.form1.username.focus();
}
</script>

Replace 'username' in the script with the field name of which you want to
place the focus. Also, give the form a name:  <form name="form1" ...>


Cheers

George
> -----Original Message-----
> From: l Burnerheimerton [mailto:lburnerheimerton@yahoo.com]
> Sent: 30 March 2005 3:53 pm
> To: pear-general@lists.php.net
> Subject: [PEAR] how to make (using javascript or otherwise) cursor go to
> username field in AUTH when page loads?
>
>
> I am using AUTH and like it.  I want to make it so
> that when the page loads, the cursor is in the first
> field.  Now you have to click in that field.
>
> Thanks.
>
> function loginFunction()
> {
> ...
>     echo "<input type=\"text\" name=\"logName\"><BR>";
>     echo "<input type=\"pass\" name=\"pass\"><BR>";
> ...
> }
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
George Pitcher
03-30-05 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:57 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.