Pure JavaScript JS Dialog Box Alternative – PurePopup

Category: Javascript , Modal & Popup | March 24, 2016
Author: dFelinger
Views Total: 3,583
Official Page: Go to website
Last Update: March 24, 2016
License: MIT

Preview:

Pure JavaScript JS Dialog Box Alternative – PurePopup

Description:

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'},
});

You Might Be Interested In:


Leave a Reply