You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simulate-event

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simulate-event

A library for triggering DOM events.

1.4.0
latest
Source
npmnpm
Version published
Weekly downloads
33K
39.62%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

simulate

FAQs

Package last updated on 01 Jul 2016

Did you know?

Socket

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