Edit This Code:
See Result »
In this example, the text field gets focus immediately after the document window has been loaded.
Result: