window-popup
Open window popup centered in the current browser window
Install
$ npm install --save window-popup
Usage
node.js
var popup = windowPopup;;;; //node webkit custom window object
Browser with jQuery
$;
Browser
window;
API
width (required)
Type: Number
Default: undefined
Width of the popup.
height (required)
Type: Number
Default: undefined
Height of the popup.
url (required)
Type: String
Default: undefined
Url to open in popup.
title
Type: String
Default: ``
Title of the popup.
window
Type: object
Default: window
Custom window object. Usefull in environments like node webkit.
License
MIT © Daniel Husar