Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to refer to a 'noname' form in a web document

Status
Not open for further replies.

chriss87

Programmer
Jan 29, 2007
11
PL
Hi

I have this problem, i want to refer to some form elements on a web document but i can't - because the form has no name

Code:
<form action="login.php" method="POST">

Any ideas how can i do it?
 
well that was a slightly different problem, i had 2 objects with a same name, but now i have none... and i dunno how to refer to the form... if it is for button text box's i can use 'getelementbyid', 'getelementbyvalue'[i guess] but i can't get a form by 'GetElementByAction'(or something like that) cuz ther's no such thing :-(
 
dm4ever you were right :-D i didn't try refering to the form in general through
Code:
document.forms(0)

thanks for the hint ^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top