To focus on a login input box with id 'login' on page startup
$(document).ready(function(){ $("#login").focus(); });