Page 1 of 1

duplicate form on a web page + focus PROBLEM

Posted: Wed Jun 30, 2004 8:19 am
by Calimero
I need to place two forms on the same web page - FORMS ARE THE SAME
like duplicates

I also have JavaScript Focus on field on load

IS THERE A WAY TO MAKE THESE TWO FUNCTION

browser returned error on javascript/ object etc.. problem // pretty sure it is related to this

Any suggestions wellcome

Thanks Ahead !

Posted: Wed Jun 30, 2004 8:27 am
by lostboy
why would you have duplicates? Give each form a different name and use that in the code

Posted: Wed Jun 30, 2004 10:30 am
by pickle
~lostboy has a point. I'd just rename one of the forms. They can have the same format and contain the same data, but they can be referenced seperately. However if , for some reason we can't imagine, you need to have the forms named the same, you can refer to them by using document.forms[]. That will allow you to refer to the first form as document.forms[0], and the second as document.forms[1], etc.