[Javascript] formName?
TomMallard
mallard at serv.net
Thu May 2 20:35:55 CDT 2002
Elements collection is what you want, I think...
for(i=0;i<document.forms().length;i++){
alert(document.formName.elements[i].value);
}
tom mallard
seattle
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Steve
Sent: Thursday, May 02, 2002 6:19 PM
To: javascript at LaTech.edu
Subject: [Javascript] formName?
I am using IE 5.5 version 4. I am having a hard time
working my way down throught the form objects. To
discover the reason why, I have tried to get the form
name. I have used the formName property and some other
useless code to get what the browser thinks the name of
the form is. Here is the form tag information (<form
id="choices" name="choices">). Here is some of what I
have tried:
var Pname = window.parent.name; //worked
var Wname = window.name; // worked
var Fname = window.document.formName; and var Fname =
window.form (with and without .name); and var Fname =
window.document.forms[0];
I am try to work my way down the objects path one
object at a time. Does any one have an idea?
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list