var del = document.createElement(\'input\'); del.type = \'button\'; del.name = \'delll\'; del.value = \'del\'; del.onClick = \'alert(\"hi javascript\")\';
del.onclick = function () { alert("hi jaavscript"); };
Use small "C" in onClick and pass a function for it.
"C"
onClick