<!DOCTYPE html> <html> <head> <title>Sweet Alert Example</title> </head> <body> <!– Button to trigger the Sweet Alert –> <button onclick=”showSweetAlert()”>Show Sweet Alert</button> <!– Include SweetAlert JS –> <script src=”https://cdn.jsdelivr.net/npm/sweetalert2@11.1.4/dist/sweetalert2.all.min.js”></script> <script> function showSweetAlert() { Swal.fire({… Continue reading Prompt using Sweet Alert Library
Tag: sweetalert
Display popup window using SweetAlert
If you want to show popup in NetSuite, we can use SweetAlert – JavaScript library that replaces the ‘alert’ function with customizable and elegant modals. To use this functionality in your scripts, you need to use the library file ‘cdn.jsdelivr.net/npm/sweetalert2@10.10.1/dist/sweetalert2.all.min.js’ in the file cabinet. Load or call (sweetalert) this file into your script. sweetalert.fire({ … Continue reading Display popup window using SweetAlert