Trigger (dispatchEvent) the 'onerror' with javascript?

Jogge

New Member
In my code I did: \[code\]element.onerror = my_function;\[/code\]I am wondering how to forcefully trigger this event so I can test it?
 
Back
Top