I'm trying to set the initial focus to a field in a form when it loads. In the <head> I have the following:
The name of the form is 'ProposalForm' and the name of the field is 'Required'. However, no field visably has focus when the page is loaded (there are a couple of buttons but I don't see them highlighted as if they have focus either). Can someone spot my error? TIA.
Code:
<script language="JavaScript" type="text/javascript">
<!--
window.document.ProposalForm.Required.focus();
//-->
</script>