Answers for "how to show message in alert"

0

alert message

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");
    }
 });
};
Posted by: Guest on November-16-2021
0

how to make an alert on a page

go to inspect element, go to console. type in 
alert("text")
Posted by: Guest on June-18-2020

Code answers related to "how to show message in alert"

Browse Popular Code Answers by Language