Dress up your javascript alerts

I found the javascript library SweetAlert to make the boring javascript alerts beautiful. You can download the library from http://t4t5.github.io/sweetalert/ and add reference to the sweetalert.min.js and sweetalert.css files in your master html page. My sweetalert files are located at sweetalert folder in the library folder of my project. So I can refer it as below.

<link rel=“stylesheet” href=“library/sweetalert/sweetalert.css”/>

http://“library/sweetalert/sweetalert.min.js”

Then you can create an alert as in their examples very easily.

 Have fun creating sweet alerts!

Advertisements

Author: Harshani Nawarathna

Sri Lankan woman in Computing

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s