summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/file_browserElement_SendEvent.html
blob: 3c510180d854b58ceaefe5c11ce501c45326fedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html><body>
<button>send[Mouse|Touch]Event</button>
</body><script>
function changeHash(e) {
  document.location.hash = e.type;
};
window.addEventListener('mousedown', changeHash);
window.addEventListener('mousemove', changeHash);
window.addEventListener('mouseup', changeHash);
window.addEventListener('click', changeHash, true);
window.addEventListener('touchstart', changeHash);
window.addEventListener('touchmove', changeHash);
window.addEventListener('touchend', changeHash);
window.addEventListener('touchcancel', changeHash);
</script></html>