Is it possible to target a div rather than the entire window for SweetAlert2?
If not is is possible to edit the center coordinates?
The reason I ask is that I ha
Here you go:
Swal.fire({ title: 'I will be placed inside the #swal2-container', target: document.getElementById('swal2-container') })
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script> <div id="swal2-container"></div>
SweetAlert2 documentation: https://sweetalert2.github.io/