Sha256: 1ecb94f8cfbe5985df0a7cd15a9eafdbf3ad8aec9f754dd615d18e66c8f1b662
Contents?: true
Size: 979 Bytes
Versions: 25
Compression:
Stored size: 979 Bytes
Contents
<!doctype html> <meta charset="utf-8" /> <title>fire_event onMouseMove test case</title> <p> You should see the word “PASS” below. </p> <p id="result">FAIL</p> <hr /> <form id="elements" onSubmit="return false;"> <button>foo</button> <input type="checkbox" /> <input type="file" /> <input type="image" /> <a href="#">foo</a> <input type="radio" /> <select><option>foo</option></select> <select multiple><option>foo</option></select> <input type="text" /> <textarea></textarea> <p>foo</p> </form> <script> var eventType = "mousemove"; var elementList = document.getElementById("elements").elements; var successfulList = new Array(); for (i = 0; i < elementList.length; i++) { elementList[i].addEventListener(eventType, eventHandler, true); } function eventHandler (e) { successfulList.push(e); if (successfulList.length == elementList.length) document.getElementById("result").innerHTML = "PASS"; } </script>
Version data entries
25 entries across 25 versions & 1 rubygems