isInteractiveElement checks if a DOM element is an interactive element or not.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

isInteractiveElement

Build Status Version on npm

isInteractiveElement checks if a DOM element is an interactive element or not.

Example usage

if ( isInteractiveElement( document.createElement( 'button' ) ) ) {
  // do something you should only do with interactive elements
}

Installation

isInteractiveElement can be installed using npm:

$ npm install [--save] is-interactive-element