autofocus=”autofocus” Want to put the cursor in a form field? Couldn’t be easier! Just add autofocus="autofocus" to the field.