[Javascript] how to create input tag on the fly

andy susanto andy78 at centrin.net.id
Thu Jul 3 08:29:41 CDT 2003


hai,

i am try to create on the fly input tag, but the input tag always create on
a new page.

What i want is that input tag on the same page how can i make that possible
?

this my script :

<FORM>
<SCRIPT LANGUAGE="JavaScript">
var objd=1;
function test(){
document.write("<input type='text' name='coba'+objd>");
objd++;
}
</SCRIPT>

<input type='button' onclick='test()' Value='create inputtag'>
</FORM>



More information about the Javascript mailing list