event = document.createEvent("MouseEvent"); alert(event); The following code shows "object KeyEvent" In the alert box. I'll attach the testcase
The test case shows a return of null for me in Moz 0.8.1 on Linux. According to the spec, the string passed to createEvent() should be plural, by the way: createEvent("MouseEvents"), createEvent("UIEvents") etc.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.