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()

Example

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

you can also use this by call of a JavaScript Function