I am trying to figure out if there is a way to auto-focus an input element on page load that is compatible with HTML 4.01 Strict, CSS 2.1, and JS 1.7, since the autofocus attribute is not available to HTML 4.01 and I do not believe the focus method is available in JS 1.7.
Is there a way to still accomplish this with those restrictions?
I think I may have found an answer to my question. According to this w3.org document, the focus method belongs to the DOM Level 1. Does this mean that the method is indeed available?
focusmethod is indeed part of DOM Level 1.