“Wiadomość ostrzegawcza” Kod odpowiedzi

Prosty program alertów w JavaScript

alert("this is the alert")
Clumsy Capuchin

Alert JavaScript

alert("string");
Tex

Wiadomość ostrzegawcza

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

Odpowiedzi podobne do “Wiadomość ostrzegawcza”

Pytania podobne do “Wiadomość ostrzegawcza”

Więcej pokrewnych odpowiedzi na “Wiadomość ostrzegawcza” w JavaScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu