Facebook style confirm alert box

| Last Updated: | In: Facebook, Javascript & Ajax, Web Technologies


When i am developing a web application, there i have to open a confirm alert box that ask for confirmation when user has change his some privileges, then i will be find out the facebook.alert.js for alert box like facebook.

You can also customize the appearance of the alert box some changes in style.css

Javascript Code

Add below javascript code before head tag closed. In the below code i have defined the alert message like facebook notification message.

HTML Code

Style.css code

demo download.


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, , , , , , , ,