I have try doing something like :
Code:
img.onclick = deleteItem("Delete");
so that, the function "deleteItem" will receive a parameter. But I get a javascript error message : obect require. So, is ut means that we cannot pass in any parameter(s) to the function "deleteItem".
Thanks a lot, guys.