It is a simple repo containing code for creating customizable message boxes in web applications.
- Link your html file to alert.js and alert.css
<script type="text/javascript" src="alert.js"></script>
<link rel="stylesheet" type="text/css" href="index.css">
- For simple alert box UI, write :-
simple_alert("The message you want to deliver to your website user");
This will will generate custom alert box, with title and message.
- For image alert box UI, write :-
custom_alert("The message you want to deliver to your website user","/path/to/folder/filename.jpg");
This code will generate custom alert box, with image, title and message.
For live demo = Open this link