Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Sweetalert

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

sweet alert bootstrap1

swal("Good job!", "You clicked the button!", "error")
Comment

sweetalert

Swal.fire({
  position: 'top-end',
  icon: 'success',
  title: 'Your work has been saved',
  showConfirmButton: false,
  timer: 1500
})
Comment

sweetalert

Swal.fire({
  position: 'top-end',
  icon: 'success',
  title: 'Your work has been saved',
  showConfirmButton: false,
  timer: 1500
})
Comment

success sweet alert

Swal.fire({
  title: 'Custom animation with Animate.css',
  icon: 'success',
  showClass: {
    popup: 'animate__animated animate__fadeInDown'
  },
  hideClass: {
    popup: 'animate__animated animate__fadeOutUp'
  }
})
Comment

bootstrap sweetalert

swal("Good job!", "You clicked the button!", "success")
Comment

sweet alert bootstrap

Swal.fire(  'Good job!',  'You clicked the button!',  'success')
Comment

SweetAlert

Swal.fire({
  title: 'هل تريد الاستمرار؟',
  icon: 'question',
  iconHtml: '؟',
  confirmButtonText: 'نعم',
  cancelButtonText: 'لا',
  showCancelButton: true,
  showCloseButton: true
})
Comment

sweet alert bootstrap

swal("Thank you!", "We will get back to you if required", "success");
Comment

sweet alert bootstrap

Swal.fire({  icon: 'success',  title: 'Oops...',  text: 'Something went wrong!',  footer: '<a href>Why do I have this issue?</a>'})
Comment

sweetalert

Swal.fire({
  title: 'Custom animation with Animate.css',
  showClass: {
    popup: 'animate__animated animate__fadeInDown'
  },
  hideClass: {
    popup: 'animate__animated animate__fadeOutUp'
  }
})
Comment

sweetalert

swal("Good job!", "success");
Comment

sweetalert

Swal.fire({
  imageUrl: 'https://placeholder.pics/svg/300x1500',
  imageHeight: 100,
  imageAlt: 'A tall image'
})
Comment

sweetalert

swal("Good job!", "You clicked the button!", "error");
Comment

sweetalert

swal("Good job!", "You clicked the button!", "success");
Comment

sweetalert

// reactjs codeto browse and upload an image from your device  
const addImage =async() => {

    const { value: file } = await Swal.fire({
      title: 'Select image',
      input: 'file',
      inputAttributes: {
        'accept': 'image/*',
        'aria-label': 'Upload your profile picture'
      }
    })
    
    if (file) {
      const reader = new FileReader()
      reader.onload = (e) => {
        Swal.fire({
          title: 'Your uploaded picture',
          imageUrl: e.target.result,
          imageAlt: 'The uploaded picture'
        }
        
        )
        console.log(e.target.result);
      }
     
      reader.readAsDataURL(file)
    }
    
Comment

sweetalert

swal({  icon: "success",});
Comment

sweetalert to small bootstrap

.swal2-popup {
  font-size: 1.6rem !important;
}
Comment

sweetalert

<script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>
Comment

PREVIOUS NEXT
Code Example
Html :: html footer 
Html :: html entity question mark 
Html :: scrape beautifulsoup python html attribute value 
Html :: external css 
Html :: button in html 
Html :: align items in li 
Html :: html syntax 
Html :: semantic ui 
Html :: mysql data to html table 
Html :: html form razor 
Html :: favicon 
Html :: nuxt i18n link 
Html :: simplecss cdn 
Html :: how to link another page in form submit 
Html :: fieldset margin 
Html :: fs render html 
Html :: emmet edit true or false sublime text 
Html :: decode html entities 
Html :: form mvc async 
Html :: html add hyperlink to button 
Html :: twig not render 
Html :: navigate to a html link in django python 
Html :: Select with checl box 
Html :: Hide overflow for Absolute images 
Html :: html relative path go back one directory 
Html :: drag and drop html 
Html :: select colopr bootstrap 
Html :: save html file in mysql 
Html :: best background color in html 
Html :: pass button value to javascript function 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =