New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dispatch-event-by-name

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dispatch-event-by-name

compatible tool for dispatchEvent()

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

dispatch-event-by-name

compatible tool for dispatchEvent()

Install

npm install dispatch-event-by-name

Usage & Api

var dispatch_event_by_name = require("dispatch-event-by-name");

_ele('divResult3').innerHTML = '<span myattr=11>aaa</span>';

_ele('divResult3').firstChild.onclick = function () { done(false); };

//dispatchEventByName(el, eventName [, options] )
//options:{ bubbles, cancelable, composed, delay } | bubbles | delay
dispatch_event_by_name(_ele('divResult3').firstChild, "click", 500);	//number for delay

Keywords

dispatchEvent

FAQs

Package last updated on 23 Mar 2022

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