20+ ways to create javascript modal windows and dialog boxes

Mar 9, 2009

Liked that login modal window on Digg ? Want to incorporate something like that in your next project ? Then this article will be helpful for you. Javascript modal dialog boxes/windows can be used in any type of project from your personal website to e-commerce website or to just spice up user interface of your web app. These can significantly improve user experience. Designers seem to like using modal windows more and more, as they provide a quick way to show data without reloading the entire page.

The most common cases where these can be used are :

(1) When you want to draw attention to important information.

(2) When you want some action from user to continue

(3) Showing warning signs

(4) For extra options panel (like login/register panel)

Prototype Window

(1) Prototype Window

This is a javascript class based on prototype framework. This class is tested on all modern browsers like Firefox,Internet Explorer, Camino,Safari,Opera. Features of this javascript class are valid HTML/XHTML code, resizable windows.

simplemodal
(2) Simple Modal
Simple Modal is jQuery framework based plugin which can be used to create different types of modal dialog boxes. This plugin is cross browser compatible.
Modalbox
(3) Modalbox
Modalbox is based on Prototype and script.aculo.us frameworks.Modalbox is lightweight (10kb) and produces valid XHTML/CSS code.It uses ajax instead of iframe to load content and is also cross browser compatible( Tested in IE6, IE7, Firefox 1.0, 1.5, 2.0, Safari, Camino, Opera 8 and 9).

(4) Moodalbox
Moodalbox can be used to display remote content using Ajax. It is based on mootools framework.
jqmodal jqmodal-2
(5) jqModal
It is plugin for jquery framework to make modal windows and dialog boxes in a web browser. features include multiple modal (including modal in modal) support. jqModal is lightweight(2.9kb), powerful and flexible.
Live Pipe UI
(6) Livepipe UI
Livepipe Ui is a suite of powerful widgets and controls for websites. It is built on prototype javscript framework. Well documentation and highly tested controls are just some of it's features.

(7) Lightwindow
It can be used to display pdf's, flash, quicktime movie files and other types of media files in javascript dialog boxes.It is tested on all modern web browsers.

(8) Submodal
It is a javascript/DHTML modal window solution. It is tested on IE 6+, Firefox 0.9+, Safari, Opera 7+.
Facebox
(9) Facebox
It is jquery based, facebook style lightbox which can be used to display images,divs or entire pages.

(10) Wingo
A way to make dragable modal boxes.
Highslide
(11) Highslide
It is a nice clean and powerful photo gallery using javascript modal boxes.
Greybox
(12) Greybox
Easy to use and setup javascript modal boxes.
suckerfish
(13) Suckerfish Hover Lightbox Redux
A suckerfish dropdown menu containing images effect. A really nice and unique effect.
Interface Elements
(14) Interface Elements for jQuery
Interface is a collection of rich interface components which utilizes the lightweight JavaScript library jQuery. With this components you can build rich client web applications and interfaces with the same simplicity as writing JavaScript with jQuery.

(15) Sexy alert box
Sexy alert box can be used to display attractive javascript alerts. Requires jQuery and Mootools.

(16) jQuery Alert Dialogs
A set of methods that provide an inline, customizable way to show JavaScript alerts, confirmations, and prompts.
jquery block UI
(17) jQuery Block UI
The jQuery Block UI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser. When activated, it will prevent user activity with the page (or part of the page) until it is deactivated.

(18) jQuery Impromtu
jQuery Impromptu is an extention to help provide a more pleasant way to spontaneously prompt a user for input. More or less this is a great replacement for an alert, prompt, and confirm.

(19) nyroModal
nyroModal is a highly customizable modal window plugin for jQuery.
Lightview
(20) Lightview
Lightview again is a javascript based modal window picture/media gallery with easy to use navigational features.
jGrowl
(21) jGrowl
jGrowl is a jQuery plugin that raises unobtrusive messages within the browser, similar to the way that OS X's Growl Framework works.
Lightbox gone wild
(22) Lightbox gone wild
Creating javascript dialog boxes using Lokesh Dhakar’s lightbox.

(23) Lightbox 2
This is good old lightbox that most of us probably already know about.
 

16 Comments so far


loveleen - March 11, 2009 3:31 AM

thats a very nice collection!!!
Thanks!!!

Eric Martin - March 11, 2009 9:07 AM

Great list...thanks for including SimpleModal!

Anonymous - March 11, 2009 12:28 PM

What about floatbox?? It is framework independent and its small and fast. The best part = loads of features.

Paul Gueller - March 17, 2009 8:10 AM

What about Sexy Lightbox?
http://www.coders.me/ejemplos/sexy-lightbox-2/

Designlabel - March 23, 2009 12:45 AM

@Loveleen Thanks

@anonymous @Paul Gueller Thanks for your addition we will include them in future.

Anonymous - May 2, 2009 1:46 AM

sweet shit!

Anonymous - May 2, 2009 1:48 AM

I've seen a dhtml modal popup where the background wasn't overlayed by a color but was instead blurred. Does anyone have an idea how to accomplish this?

Designlabel - May 2, 2009 7:23 AM

That effect can be created using a blurred transparent PNG overlay.

logiclabz - June 2, 2009 5:43 AM

I found a simple way
http://www.logiclabz.com/javascript/create-a-modal-window-div-element-with-javascript-on-html.aspx

Reynold Hugh - June 15, 2009 2:32 AM

Excellent Job!
Template Magician

Paul Engel - July 3, 2009 2:57 PM

Try out TopUp:

http://gettopup.com

It's jQuery based and meant to be setup with great ease. The easiest setup is only to include an external Javascript file. The look-and-feel is Apple-like with a dashboard and quicklook layout and TopUp has many advantages!

Anonymous - July 29, 2009 3:50 AM

Can someone tell me if I can use any of these modal windows with a <"form">? I want when user clicks on the submit button from a form instead of opening new tab/window to load the new page in modal window.

SQL Like - December 1, 2009 6:42 PM

I am trying to create a loghtbox for my site and it brought me to this page, simple nice and precise info, thanks for this, i shall try it out at http://www.sqllike.com

The Web Pro - July 13, 2010 1:44 PM

Anyone know of a Facebook-style modal window (like Facebox) that's based on Prototype? Need it for a simple contact form on website design that uses Prototype. Thanks in advance.

Anonymous - November 22, 2010 4:27 PM

First, thanks to the original poster!
I found several very interesting!

Paul Gueller: Thank you as well for this indeed sexy box lib.

anon who mentioned floatbox: Thank you as well!

So happy I came by this page!

Anonymous - November 22, 2010 4:50 PM

Taking my words back regarding Lightbox - this is a commercial software and Paul Gueller obviously is spamming in the wrong place.

Post a Comment