Please make sure your have wrote your codes to delete any row inside the following if block
if(confirm(".....")){
}
This will prevent deletion when user press cancel.
Also if you can post your code in this forum so it will be more easy for me to debug this.