Alert for custom button

Alert for custom button

I have a custom button on a view record page in CRM which triggers a custom Deluge function.

is there a way to add an alert / confirmation popup when that button is clicked?