If you return false from your onclick handler, it will undo the default action of the click. So try the following:
onClick="return confirm(\'Are you sure you want to delete '.esc_attr($this->event_name).'?\')"
This will return any value returned by confirm() , i.e. true if you click OK and false otherwise.
nnnnnn
source share