Delete button with alert

I have a table with all records and for each record a button link to the page for delete record
To insert an alert with confirmation request, where should I intervene and how? On the button or on the delete page?
Thank You

Community Page
Last updated: