try this one $(document).ready(function(){ function SetFocus () { var input = document.getElementById ("user_email"); input.focus ();}}); .
www.google.com.tw