Skip to content

Raphaël Object: Simulate click

It it possible to simulate an click on an Raphaël object? I tried already;  // Error: click is not a function
// or
object.dispatchEvent('click'); // Error: Could not convert JavaScript argument arg 0 [nsIDOMEventTarget.dispatchEvent]


Just access the DOM node using Element.node as described in the docs. You can then trigger events on the node as you would with any other DOM element