
PurePopup.js is a standalone JavaScript library to replace the default JS popup boxes that let you create responsive, animated, pretty clean alert/confirm/prompt dialog popups on the webpage.
Basic usage:
Load the purePopup.css for the primary popup styles.
<link rel="stylesheet" href="purePopup.css">
Load the purePopup.js at the bottom of the webpage.
<script src="purePopup.js"></script>
Create the dialog popups.
PurePopup.alert(); PurePopup.confirm(); PurePopup.prompt();
Available parameters.
// PurePopup.type(params, callback);
PurePopup.prompt({
title: document.title,
buttons: {ok: 'Ok', cancel: 'Cancel'},
inputs: {name: 'Please, enter your name'},
});






