“SweetAlert Пример” Ответ

Sweet Alert 2 Do Date на подтверждении

Swal.fire({  
  title: 'Do you want to save the changes?',  
  showDenyButton: true,  showCancelButton: true,  
  confirmButtonText: `Save`,  
  denyButtonText: `Don't save`,
}).then((result) => {  
	/* Read more about isConfirmed, isDenied below */  
    if (result.isConfirmed) {    
    	Swal.fire('Saved!', '', 'success')  
    } else if (result.isDenied) {    
    	Swal.fire('Changes are not saved', '', 'info')  
 	}
});
Orbit Tuner

Сладкий

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>
Code Cat

Переключение оповещения

swal({
	title: "Good job!",
	text: "You clicked the button!",
	icon: "success",
	button: "Aww yiss!"
});
Eager Eagle

Сладкий пример

swal({
  title: "Good job!",
  text: "You clicked the button!",
  icon: "success",
  button: "Aww yiss!",
});
Thankful Tern

SweetAlert Пример

//import sweetalert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>

//Alert
<script>swal("My title", "My description", "success");</script>
David Martínez L

SweetAlert JS Полный код

<script>
  // when window loades this alert pop ups 
        swal({
      text: "Hello world!",
           }     );
    </script>
Xerothermic Xenomorph

Ответы похожие на “SweetAlert Пример”

Вопросы похожие на “SweetAlert Пример”

Смотреть популярные ответы по языку

Смотреть другие языки программирования