Dynamically adding a form element and field to a page

Giganews Newsgroups
Subject: Dynamically adding a form element and field to a page
Posted by:  Mike Dee (..@x.com)
Date: Thu, 2 Mar 2006

Is it possible to dynamically create a new form object (form1), then create
a new form field object and add it form1, and then add form1 to the current
document? I need to do all this in script rather than using the html <form>
and related tags.  Can this be done to support both IE, Firefox?

Any code snippets or samples showing how to do this would be fantastic.
Thanks!

--- Mike

Replies