As an answer to the question of \'How do you automatically set the focus to a textbox when a web page loads?\', Espo suggests using
There's nothing wrong with using the onload attribute in the element, provided:
onload handler on the body element or the window objectIt's also worth noting that is a part of a formal standard (HTML 4) while window.onload is not, although it is implemented in all the major browsers going back many years.