Problem with input focus on Safari

I had a javascript hic­cup, and I think the solu­tion may be help­ful to oth­ers.

The basic set­up is this:

Lim­it­ed space means no room for labels in a login form. So instead we used a pre­set val­ue in the input ele­ments, like so:



Which looks like this:



The easy way to blank out the descrip­tive text is to use the onfo­cus event like so:

onfocus="this.value=''"

Con­tin­ue read­ing “Prob­lem with input focus on Safari”