Skip to content
A window.open JavaScript wrapper.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
_config.yml
jasop.js
package.json
yarn.lock

README.md

Jasop

A window.open JavaScript wrapper.

Travis CI Build Status CodeFactor Score

NPM

Importing

From your NodeJS application:

const Jasop = require("jasop")

From your web application:

<script src="https://unpkg.com/jasop/jasop.min.js"></script>

Usage

// Will parse as: window.open("https://example.com", "MyWindow", "height=100,scrollbars=yes,width=200", true)
Jasop(
    "https://example.com", // URL
    {
        height: 100, // You can use any window.open option
        scrollbars: true // Booleans will the parsed
        width: 200, // Everything else will be converted to a string
        title: "MyWindow", // Custom window title
        replace: true // History behaviour
    }
)
You can’t perform that action at this time.