simulate-event
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Simulate Event

NPM version NPM downloads Build status Test coverage

Simply trigger DOM events on any element.

Installation

npm install simulate-event --save-dev

Usage

// Simulate an event on an element
simulateEvent.simulate(document.body, 'click');
 
// Generate an event for custom use
var evt = simulateEvent.generate('click', { clientX: 10 });

License

MIT

/simulate-event/

    Package Sidebar

    Install

    npm i simulate-event

    Weekly Downloads

    9,875

    Version

    1.4.0

    License

    MIT

    Last publish

    Collaborators

    • blakeembrey
    • blink1073