Setting focus to usernames input area when page Login loads.

I set focus to username's input area automatically when the page Login loads. I just added a javascript code at this page.