> That's because autofocus causes CSS flashes on some web-browsers.
> If you can suggest a reasonable workaround, that would be great.

Oh, I'm sorry I've missed that.

The only other way I know is by JavaScript, something like:

window.onload = function() {
  document.getElementById("u").focus();
};

Nowadays, the faster "DOM ready" event may be preferred over
`window.onload', but finding a cross-browser solution here always
seems somewhat cumbersome to me, and the latter seems quick enough for
simple web pages.

However, I'm not sure what are "CSS flashes", and whether they may
appear with the JavaScript method, as well.

--Florian
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to