The code is relatively simple and can be posted directly
A simple trigger event, the confirm return value determines whether to trigger the link event
onclick="return confirm('Are you sure you want to delete?')"
The following is a specific example
A link comes with a deletion address
For more PHP experience-js deletion tips, please pay attention to PHP Chinese website for related articles !