<div id ="uploadArea"> </div>
function Addbtn() { if (!document.getElementById || !document.createElement) return false; var uploadArea = document.getElementById("uploadArea"); if (!uploadArea) return; var newline = document.createElement("br"); uploadArea.appendChild(newline); var newDeleteButton = document.createElement("input"); newDeleteButton.type="submit"; newDeleteButton.size="5"; newDeleteButton.value="Delete"; if (!newDeleteButton.lastAssignedId) { newDeleteButton.lastAssignedId = 100; } newDeleteButton.setAttribute("id", "btn"+ newDeleteButton.lastAssignedId); newDeleteButton.setAttribute("name", "btn" + newDeleteButton.lastAssignedId); uploadArea.appendChild(newDeleteButton); newDeleteButton.lastAssignedId++ } function Need_To_Call_This_fucntion_OnClick_of_DynamicallyCreatedHTML_Button { alert("ok"); }
alert("ok")
function clickedFunction(){ alert("ok");}...newDeleteButton.addEventListener('click',clickedFunction,false);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)