This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to get the name of the form in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to get the name of the form in javascript" Watch "how to get the name of the form in javascript" New topic
Author

how to get the name of the form in javascript

kay lin
Ranch Hand

Joined: May 20, 2004
Posts: 132
hi all:
suppose i have the following code



now, in my javascript, what properties should i use to display the name of the form, namely in this case , it is "frm1"

document.forms[i].name or document.forms[i].value? i tried both, but neither seems to get me "frm1"...

Please do let me know...

Many thanks...
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to get the name of the form in javascript
 
jQuery in Action, 3rd edition