Skip to content
JavaScript PopUp
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MIT-LICENSE.txt Create MIT-LICENSE.txt May 3, 2018
README.md Update README.md Sep 22, 2015
README.txt Create README.txt May 23, 2013
index.html Update index.html Mar 11, 2013
xpopup.js "modal" improvement Oct 15, 2014

README.md

xPopUp

Full control over JavaScript PopUp's.

  • No extra library required.
  • Easy to use.
  • Events.
  • Callbacks.
  • Full control.

Example

// Open URL in PopUp: page.php?id=123
var p = xpopup({
    url: 'page.php',
    data: {
        id: 123
    },
    width: 400,
    height: 400,
    modal: true, // Block UI and show PopUp
    onClose: function() {
        alert('Popup closed!');
    }
});

// Center PopUp in screen
p.center();

// Check if PopUp is closed
if (p.closed()) {
    alert('PopUp closed!');
} else {
    // Set PopUp focus
    p.focus();
    // Maximize PopUp
    p.maximize();
}
You can’t perform that action at this time.