faqts : Computers : Programming : Languages : JavaScript : Forms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 34 people (59%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Can i create a new form dynamically using javascript and add to the page?

May 3rd, 2002 15:38
Mark Paschal, davinder singh,


Yes. This article describes how to edit a page with the standard DOM:
http://www.scottandrew.com/weblog/articles/dom_1
You can build a new form dynamically using the "createElement,"
"setAttribute," and "appendChild" methods.