Hi Hilary, thanks for the help. This is the code that I have so far. I know the delete code works, I had it working before I tried to add the confirmation. But I still get a run-time error saying that there is an object expected at line 25. That is the line that's underlined.
function CTRL287_5::OnClick(eventObj)
{
var answer = confirm("Do you really want to delete?");
if (answer == true)
{
var thisNode = eventObj.Source.selectSingleNode(".");
thisNode.parentNode.removeChild(thisNode);
}
else
{
return;
}
}