MessiJS

A simple, elegant message plugin for jQuery.

View MessiJS on GitHub

API Documentation

window.dialog = new Messi(
    'A Messi message.',
    {
        center: false,
        width: '300px',
        position: { top: '20px', left: '20px' }
    }
);

Change the dialog’s content.

dialog.setContent('Some new content.');

Force the dialog to move to the center.

dialog.center();

Hide, but don’t remove, the dialog.

dialog.hide();

Show a previously hidden dialog.

dialog.show();

Toggles the hide/show state of the dialog.

dialog.toggle();

Removes the dialog from the DOM.

dialog.unload();