Hai,
I have added an image dynamically to my webpage, i wanna perform a click event on it, i have used the below code,, but it's not working fine.
var frm=document.getElementById('frm');
var img=document.createElement('img');
img.src='cal.gif';
img.onclick='DoCal()' \\this line is not working fine.
frm.appendChild('img')
Thanks,
Deepakkumar D


Reply With Quote
Bookmarks