Prototype - fire() Method
This method is used to fire a custom event with the current element as its target.
The custom event has all the same properties and methods of native events. Like a native event, it will bubble up through the DOM unless its propagation is explicitly stopped.
Custom events are dispatched synchronously: Element#fire waits until the event finishes its life cycle, then returns the event itself.
The optional second argument will be assigned to the memo property of the event object so that it can be read by event handlers.
It returns custom event
In this example, an element with ID (firstDiv) frobbed widget #19.