What is this?

Message.js blocks the whole screen and prompts the user with a customizable message. It features shorthand functions for the most common events (info, confirmation, alert, error, wait) but also allows customized prompting.

Message.js relies on jQuery - be sure to include jQuery in your script first!

Comments or questions? Drop me an email

Live Demo


1. If you haven't already included jQuery, you'll have to add it first in the head-section of your page. Download jQuery from here or load it via Google:
<script type="text/javascript" src=""></script>
2. Download the message package and include Message.js after jQuery:
<script type="text/javascript" src="Message.js"></script>
3. Include the delivered stylesheet Notification.css:
<style type="text/css" src="Message.css"></style>


Coming soon!


Coming soon!


  • The buttons in the dialog are labeled with "Ok" and "Cancel" by default. If you want to change this, you can use the Message.label setting.

  • Message.label.ok
    Sets the label for the Ok-button. Default: 'Ok'
    Message.label.ok = 'Yes';
  • Message.label.cancel
    Sets the label for the cancel-button. Default: 'Cancel'
    Message.label.cancel = 'No';



This is free software that comes without any warranty.
You are free to use it, copy it, change it, print it, name a song after it or anything else you would like to do with it.
If you are kind please link back to this page or mention it.

© Volker Wieban 2009