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
README.md
README.txt
index.html
xpopup.js

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.