simulate-dom-event
1.0.3 • Public • Published simulate-dom-event
simulate dom event across browser. it is only suitable for test purpose!
exmaple
<script src='index.js'></script>
<div id='t'></div>
<script>
var t = document.getElementById('t');
t.addEventListener('click',function(e){
alert(e.which);
},false);
window.simulateEvent(t,'click',{
which:2
});
</script>
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.3
11
Version History
Package Sidebar
Install
Weekly Downloads