Login Screen Focus

Kasey has a good tutorial on how to have the cursor automatically focused on the Username field of the login screen so that you can just start typing immediately. Unfortunately that tutorial talks about MT 2.x so here's the MT 3.x version.

In login.tmpl find the following code

<input name="username" id="username" size="20" />

and add right after it the following

<script>document.forms[0].username.focus()</script>

Upload the file to MT_DIR/tmpl/cms/ and voila, whenever you are presented with the MT login screen the cursor will be blinking in the username field.

1 Comments

abhi said:
on Oct 1, 2004 12:46 AM | Reply

ahh... good code... i like it...

btw some browsers do the dirty work automatically... but then there r some dumb browsers as well who can't even interpret CSS round boxes properly...

Leave a comment

Preview