triggerEvent

creates and triggers native DOM event

void triggerEvent(HTMLElement node,string type,string name);

Parameters

nodeHTMLElementHTML element for which event is created
typestringevent "family"
namestringevent name

Example

var node = document.getElementById("mydiv");
webix.html.triggerEvent(node, "MouseEvents", "click");

See also
Back to top