>>641
inputtag[i].setAttribute('onclick','(function(){alert("aaa");})();');