1 2 3 4 5 6 7 8 9 10 11 12
<!DOCTYPE html> <html> <head> <title>autofocus on form control</title> </head> <body> <div>Below form control has autofocus attribute set.</div><br /> <form action=""> <span>Textbox: </span><input autofocus="autofocus" type="text" name="movie" /> </form> </body> </html>