Forum Moderators: open
Let's assume I have a header file which is included sometimes into the pages, but sometimes not, and there's a standalone form in the header. But the page itself is containing a form also, but I want to check some fields upon submitting. I use always the document.forms[#] way of referencing for this purpose, but in this case I can't use it, since I don't know the sequence of the forms.
What is the best and safest way (fool- and browser-proof) for this?
Well, i'm quite old-fashined in a way, and since the forms collection was working always, so i just did not checked the other possibilities...
Does the "other" browsers like opera, mozilla supports this way of referencing?
Thanks anyway;