You can use the JavaScript method "appendChild".

See more on:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/appendChil
d.asp

The example in the page is:

var oDiv=document.createElement("DIV");
document.body.appendChild(oDiv);

Best regards,


Sami

> Hi,
> I have a small problem.
> Can anyone tell me how to generate a textbox in a form (HTML) using Java
> Scripts.
> i.e when i click on a button. i need a text box to be generated in the
same
> form.
> I tried out document.write('<input="text" name="textbx"'). but it just
does
> not work.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to