“message alerte” Réponses codées

Programme d'alerte simple en javascript

alert("this is the alert")
Clumsy Capuchin

Alerte JavaScript

alert("string");
Tex

message alerte

document.querySelector('#from1').onsubmit = function(){

 swal({
    title: "Are you sure?",
    text: "You will not be able to recover this imaginary file!",
    type: "warning",
    showCancelButton: true,
    confirmButtonColor: '#DD6B55',
    confirmButtonText: 'Yes, I am sure!',
    cancelButtonText: "No, cancel it!",
    closeOnConfirm: false,
    closeOnCancel: false
 },
 function(isConfirm){

   if (isConfirm){
     swal("Shortlisted!", "Candidates are successfully shortlisted!", "success");

    } else {
      swal("Cancelled", "Your imaginary file is safe :)", "error");
    }
 });
};
Blue-eyed Boar

Réponses similaires à “message alerte”

Questions similaires à “message alerte”

Plus de réponses similaires à “message alerte” dans JavaScript

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code