The following code does not work (in the javascript console, and also when entering a script through a browser extension)
document.createEvent('TestEvent')
Firebug spits out:
[Exception... "Operation is not supported" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "http://www.google.com Line: 71"]
Chrome displays a similar error message. What am I doing wrong?
javascript javascript-events
shmichael
source share