Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(target: &Value, args: &[Value]) -> Result<Value, String>
Expand description

target.dispatchEvent(event) — run the listeners for event.type in registration order, then report whether preventDefault() was NOT called.