yeah, but adding in jquery will open up his entire world :) the example below will work without jquery. personally though i try to stick with jquery since i usually need it for more throughout my site. On 11/13/07, Chris <dmagick@xxxxxxxxx> wrote: > It only works if you have included the jquery javascript files. > > If you don't want to use that you could do something like: > > <script defer> > document.getElementById('username').focus(); > </script> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php