Socket
Socket
Sign inDemoInstall

window-popup

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    window-popup

Open window popup centered in the current browser window


Version published
Weekly downloads
768
increased by3.78%
Maintainers
1
Install size
4.05 kB
Created
Weekly downloads
 

Readme

Source

window-popup Build Status

Open window popup centered in the current browser window

Install

$ npm install --save window-popup

Usage

node.js

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

Browser with jQuery

$.windowPopup(500, 500, 'http://www.google.sk');

Browser

window.windowPopup(500, 500, 'http://www.google.sk');

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

FAQs

Last updated on 27 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc