Menu
I want to add buttons, input fields, etc. in a dynamic way, through a call to a javascript function. I can’t do it in html because i don’t know up-front what buttons, text, etc. I would need. Any suggestions how to do it?
The follow up question would be similar, except for dynamic additions to a form.
I tried:
[code]document.write(…….)
but this seems to create a new document, which ignores the remaining portions of the html code.
Anyway, is it possible to have:
[code]document.write(‘<input type=”button” name=”testButton” value=”test” onClick=”alert(‘test OK’)”>’);
Thanks.