I would like to know how I could put a link in the button that generates the confirmButtonText
of Sweet Alert 2
.
The goal is that when you press that button redirects to a page that removes a record from a database, until now I had it with a simple link (<a>
) in a simple button, but I would like to add this small confirmation.
Here is the code:
The buttons is as follows:
This will work!
confirmButtonText: '<a href="url">LINK</a>'