Skip to content

Component: check whether a DOM click event would open in a new tab.

License

Notifications You must be signed in to change notification settings

segmentio/is-meta

Repository files navigation

is-meta

Note
Segment has paused maintenance on this project, but may return it to an active status in the future. Issues and pull requests from external contributors are not being considered, although internal contributions may appear from time to time. The project remains available under its open source license for anyone to use.

CircleCI Codecov

Checks whether a DOM click event should open a link in a new tab.

Installation

$ npm install @segment/is-meta

Example

var isMeta = require('is-meta');

a.onclick = function (event) { 
  isMeta(event); // true or false
};

About

Component: check whether a DOM click event would open in a new tab.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •