
How do I set the focus to the first form field?

Hi friends,
You can not do it with the help of HTML. It is possible only by scripting language.
Code:
<html>
<head>
<script type="text/javascript" language="javascript">
function focusNameField()
{
document.form1.name.focus();
}
</script>
</head>
<body onload="focusNameField()">
<form id="form1" name="form1" action=...>
<input type="text" id="name" name="name" ...>
</form>
</body>
</html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.