Available on js
read onlyglobal:Dynamic
onmessage:Function
createSandbox(name:String, prototype:Dynamic):Dynamic
Throws:
null
DOMError
dump(?string:String):Void
enterEventLoop():Void
leaveEventLoop():Void
loadSubScript(url:String, ?sandbox:Dynamic):Void
postMessage(message:String):Void
reportError(message:String):Void
retrieveConsoleEvents():Array<Dynamic>
setConsoleEventHandler(handler:Function):Void
setImmediate(handler:Function):Void
addEventListener(type:String, listener:Function, ?options:EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted:Bool):Void
addEventListener(type:String, listener:EventListener, ?options:EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted:Bool):Void
Register an event handler of a specific event type on the EventTarget.
EventTarget
dispatchEvent(event:Event):Bool
Dispatch an event to this EventTarget.
removeEventListener(type:String, listener:Function, ?options:EitherType<EventListenerOptions, Bool>):Void
removeEventListener(type:String, listener:EventListener, ?options:EitherType<EventListenerOptions, Bool>):Void
Removes an event listener from the EventTarget.