1.
<script>
function focusit()
{
document.all("你想定位的对象名字").focus();
}
</script>
<body onload="focusit()">
2.
<body onload="document.testform.textinput.focus()">
<form name="testform">
<input type="text" name="textinput">
</form>
</body>
3.
<body onload="textInput.focus()">