The following five free JavaScript libraries make it much easier to add a text editor to your application And ensure that it's software that your users want to use. widgEditor. Sometimes all you really need is the bare minimum. The widgEditor is meant to be extremely light (only 33.4 KB), simple to use, and efficient. And it is. A JavaScript confirm dialogue example. You may use this alert type for giving a warning to the user before proceeding to some critical action like "deleting an account permanently" or deleting a file etc. See the demo online with code: See online demo and code.