Instead of showing a simple alert box i want to try something new and after hours of research i found this Alertify.js
Or just copy my steps. It would be easy for you to understand in just 2 simple Steps.
First Step:- Download the alertify package here and extract the file content in your project.
Second Step:- Include the css and Js files in your header section.
That’s it now Just use the alertify popup wherever you want it.
// alert dialog alertify.alert("Message");