Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.63 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.63 KB

Custom alert box (in Javascript)

It is a simple repo containing code for creating customizable message boxes in web applications.

Guide

  • 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.

Demo

For live demo = Open this link

Languages used:-

HTML5 css3 javascript

Authors