martindavey
Programmer
I have created several layers on my page.
In each layer is a form.
I am trying to reference the elements on those forms without success.
Example.
<body onLoad="document.layers.layer1.Page1.FirstName.focus();">
<layer id="layer1">
<form name="Page1">
<input type="text" name="FirstName">
</form>
</layer>
This gives me the error:
document.layers.layer1.Page1 has no properties.
I've tried:
document.Page1.FirstName
document.layer1.FirstName
documents.layers.layer["layer1"].Page1.FirstName
etc.
Any ideas??????
In each layer is a form.
I am trying to reference the elements on those forms without success.
Example.
<body onLoad="document.layers.layer1.Page1.FirstName.focus();">
<layer id="layer1">
<form name="Page1">
<input type="text" name="FirstName">
</form>
</layer>
This gives me the error:
document.layers.layer1.Page1 has no properties.
I've tried:
document.Page1.FirstName
document.layer1.FirstName
documents.layers.layer["layer1"].Page1.FirstName
etc.
Any ideas??????