[Javascript] How do i get the name of the form in JavaScript

Walter Torres walter at torres.ws
Thu May 15 01:06:48 CDT 2003


assuming you have only 1 form in your document...

  var strFormName = document.forms[0].name;

walter



> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Selvaraj, Murugan
> (Indsys)
> Sent: Thursday, May 15, 2003 12:15 AM
> To: javascript at LaTech.edu
> Subject: [Javascript] How do i get the name of the form in JavaScript
> 
> 
> Hi
> 
> I have a form with specific name.I want to get the name of the form using
> javascript.How do i get that.Help would be appreciated.
> 
> Regards
> Murugan
> 
> 
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this 
> communication is strictly Prohibited. 
> If you have received this message by error, please notify us 
> immediately, return the original mail to the sender and delete the 
> message from your system."
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript


More information about the Javascript mailing list