Open window popup centered in the current browser window
$ npm install --save window-popup
var popup = require('window-popup').windowPopup;
popup(500, 500, 'http://www.google.sk');
popup(500, 500, 'http://www.google.com', 'Google');
popup(500, 500, 'http://www.google.com', 'Google', gui.Window.get()); //node webkit custom window object
$.windowPopup(500, 500, 'http://www.google.sk');
window.windowPopup(500, 500, 'http://www.google.sk');
Type: Number
Default: undefined
Width of the popup.
Type: Number
Default: undefined
Height of the popup.
Type: String
Default: undefined
Url to open in popup.
Type: String
Default: ``
Title of the popup.
Type: object
Default: window
Custom window object. Usefull in environments like node webkit.
MIT © Daniel Husar