default cursor in particular textbox

Javascript method focus() is used here to focus at a particular text box on loading of form. Syntax as:

document.<name of form>.<name of text box>.focus()


<!DOCTYPE html>
<title>default curson in text field</title>
<body onload="document.form1.dummyfield.focus()">
	<form method="post" name="form1">
		<input type="text" name="dummyfield" /> 
		<input type="text" name="dummyfield2" /> 
		<input type="submit">

you can also use this by call of a JavaScript Function