Hi All;
I have this javascript which is adding a new button to the column in
the row which is created dynamically, the innerhtml shows that the
onclick event is correctly added but it never gets invoked when I
click it.
newcol = doc.createEleme nt("TD");
newbutton = doc.createEleme nt("input");
newbutton.name = "newChange"+__u id;
newbutton.width = 15;
newbutton.heigh t = 15;
newbutton.type = "button";
newbutton.oncli ck = "alert('hi' );";
newcol.appendCh ild(newbutton);
alert(newcol.in nerHTML);
newrow.appendCh ild(newcol);
tbl.appendChild (newrow);
__uid++;
window.close();
Any help will be greatly appreciated.
Thanks
Dipin
I have this javascript which is adding a new button to the column in
the row which is created dynamically, the innerhtml shows that the
onclick event is correctly added but it never gets invoked when I
click it.
newcol = doc.createEleme nt("TD");
newbutton = doc.createEleme nt("input");
newbutton.name = "newChange"+__u id;
newbutton.width = 15;
newbutton.heigh t = 15;
newbutton.type = "button";
newbutton.oncli ck = "alert('hi' );";
newcol.appendCh ild(newbutton);
alert(newcol.in nerHTML);
newrow.appendCh ild(newcol);
tbl.appendChild (newrow);
__uid++;
window.close();
Any help will be greatly appreciated.
Thanks
Dipin
Comment