OK - so magic happens here is the result. ;-) Two options A- Use ids with your HTML elements and populate the values that way via getDocumentById. B - You can use the following format: document.formName["elementName"].value = "new value"; Those will route around the "naming issue".