Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Sweetalert

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

sweet alert example

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

sweetalert

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

sweetalert example

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

//Alert
<script>swal("My title", "My description", "success");</script>
Comment

sweetalert

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

sweetalert js full code

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

SweetAlert

Swal.fire({
  title: 'هل تريد الاستمرار؟',
  icon: 'question',
  iconHtml: '؟',
  confirmButtonText: 'نعم',
  cancelButtonText: 'لا',
  showCancelButton: true,
  showCloseButton: true
})
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 jquery

customClass: {
  container: 'havij',
  popup: '...',
  header: '...',
  title: '...',
  closeButton: '...',
  icon: '...',
  image: '...',
  content: '...',
  htmlContainer: '...',
  input: '...',
  inputLabel: '...',
  validationMessage: '...',
  actions: '...',
  confirmButton: '...',
  denyButton: '...',
  cancelButton: '...',
  loader: '...',
  footer: '....',
  timerProgressBar: '....',
}
Comment

sweetalert

swal({  icon: "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

sweet alert example

swal("Here's a message!")
Comment

sweetalert

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

PREVIOUS NEXT
Code Example
Javascript :: razorpay node sdk 
Javascript :: Mongoose filter by multiple fields 
Javascript :: react convert excel to json 
Javascript :: input from terminal node js 
Javascript :: new line with javascript write 
Javascript :: react button onclick components 
Javascript :: how to sho the active navigation ling using javascript 
Javascript :: linear gradient react native 
Javascript :: js stringify 
Javascript :: simple id using javascrip math randomt 
Javascript :: js array split by comma 
Javascript :: jquery window new tab with post 
Javascript :: how to copyy a string variable to clipboard in js 
Javascript :: js delete cookie by name 
Javascript :: pass param to url retrofit 
Javascript :: npm hook form 
Javascript :: javascript slice string from character 
Javascript :: multiple conditions for JavaScript .includes() method 
Javascript :: How to blacklist words with discord.js 
Javascript :: java script alert 
Javascript :: Run project in visual studio with iis express 
Javascript :: prevent click on pseudo element javascript 
Javascript :: react native lottie 
Javascript :: angular how to copy text with button 
Javascript :: reddit fetch api js 
Javascript :: array some 
Javascript :: submit form react js 
Javascript :: add class name in html 
Javascript :: pagination.js example codepen 
Javascript :: Round Decimals to a Certain Number of Decimal Places 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =