Meaningless Drivel is fun!*
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: 15376
    
    6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the name of the form in javascript
 
Similar Threads
Calling a backing bean method from onClick?
TOMAHAWK t:inputCalendar java script problem popup
Struts 2 <s:submit action > and javascript help
Add options text to select from javascript?
call servlet from javascript