/javascript-messagebox-UI

Alert box UI/UX in javascript

Primary LanguageHTMLApache License 2.0Apache-2.0

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