var del = document.createElement(\'input\'); del.type = \'button\'; del.name = \'delll\'; del.value = \'del\'; del.onClick = \'alert(\"hi javascript\")\';
So to answer the question in details:
del.onclick = '' does not "execute" something within quotes. If you want to execute/call a function, you would want to pass the function as a parameter.
i.e
del.onclick = function() { alert('hi there!')}