logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Declan Lynch
    • Posted on Fri 23 Jan 2004 08:13

    I totally agree. It is a pain to look back up at a screen and see half your password in plain view.

    One trick I've used in the past is to use an if statement in the onload event.

    If(document.getElementById('myfield').value==""){document.getElementById('myfield').focus()}

    So if the field is blank then move the cursor there, if it's not blank then assume that the user has already started typing and don't do anything.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: