ループ内で関数を呼び出す必要があります。
私は次のコードを持っています....
do {
var name = prompt("Enter name:");
if (!isNaN(age) && name != null && name != "") {
names[i] = name;
}
loop = confirm("Add new name?");
i++;
// at this place I want to call the function
// addnew(document.getElementById("newtable")"; so when someone clicks cancel in the confirm box the javascript creates a dynamic table from the array names
} while (loop);
関数 addnew を呼び出す方法を知っている人はいますか?