Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A configurable JavaScript + HTML modal dialogue (tiny, with no dependencies)
CSS JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
content.html
index.html
license.txt
modalDialogue.css
modalDialogue.js
readme.md

readme.md

modalDialogue

This code displays a modal dialogue in front of an existing web page. It takes a URL as a parameter which is the address of the content to show within the dialogue. The dialogue closes when clicked. Suggestions and improvements are most welcome.

Example: http://ear1grey.github.io/modalDialogue/

Use

The modalDialogue object has two public functions, open and close.

open

The open function takes one parameter, the URL of the content that should be shown within the modal dialogue. e.g. modalDialogue.open("http://example.org/");

close

The close function takes no parameters. It removes the modal dialogue from display. e.g. modalDialogue.close();

License

Free Software: see license.txt Copyright (c) 2011 Rich Boakes

Something went wrong with that request. Please try again.