By clicking on the button, the SweetAlert window appears with the message, but it disappears immediately and does not allow the user to read the alert.
Script:
<script type="Text/javascript">
function Notificacion2() {
swal({
type: 'error',
title: 'La contraseña es incorrecta',
showConfirmButton: false
})
}
</script>