Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 612 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 612 Bytes

qBox

A light-weight javascript popup that is easy to use.

Once the script is included, you can call the popup like this:

var qBox = new QBox({ html : "my html" });
qBox.show();

To programmatically hide, you can call:

qBox.hide()

but it will also hide by default via clicking the mask, or the close button.

Configuration Defaults

{ 
	html : "",
	modal : false,
	showClose : true,
	onOpen : function(){},
	onClose : function(){},
	className : "",
	closeHTML : "×",
	autoCenter : true,
	blurBackground : false,
	shrinkToFit : false
}