Customizable alert with Zero dependencies.
<script src="alert.js"></script>
<link rel="stylesheet" href="alert.css">
The most basic message:
Alert({message:'Hello World !'})
A message with title:
Alert({title:'Alert1',message:'Hello There !, I am using Alert.'});
Chaining Multiple Alerts:
function onOk(title, msg) { // callback function have to return Alert
return () => {
return Alert({ title: title, message: msg })
}
}
Alert({ title: 'Alert2', message: 'You Can Chain multiple Alerts.', callBacks: [onOk('First pop up !'), onOk('2nd pop up !'), onOk('3rd pop up !')] });