“Pesan waspada” Kode Jawaban

Program Peringatan Sederhana di JavaScript

alert("this is the alert")
Clumsy Capuchin

Peringatan JavaScript

alert("string");
Tex

Pesan waspada

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

Jawaban yang mirip dengan “Pesan waspada”

Pertanyaan yang mirip dengan “Pesan waspada”

Lebih banyak jawaban terkait untuk “Pesan waspada” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya