on Module

Event handlers.

Nested modules

Modules Description

async

Event handlers returning type Async.

task

Event handlers returning type Task.

Functions and values

Function or value Description

abort callback

Full Usage: abort callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event abort.

callback : ProgressEventArgs -> unit

The event callback.

Returns: Attr

activate callback

Full Usage: activate callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event activate.

callback : EventArgs -> unit

The event callback.

Returns: Attr

beforeactivate callback

Full Usage: beforeactivate callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event beforeactivate.

callback : EventArgs -> unit

The event callback.

Returns: Attr

beforecopy callback

Full Usage: beforecopy callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event beforecopy.

callback : EventArgs -> unit

The event callback.

Returns: Attr

beforecut callback

Full Usage: beforecut callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event beforecut.

callback : EventArgs -> unit

The event callback.

Returns: Attr

beforedeactivate callback

Full Usage: beforedeactivate callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event beforedeactivate.

callback : EventArgs -> unit

The event callback.

Returns: Attr

beforepaste callback

Full Usage: beforepaste callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event beforepaste.

callback : EventArgs -> unit

The event callback.

Returns: Attr

blur callback

Full Usage: blur callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event blur.

callback : FocusEventArgs -> unit

The event callback.

Returns: Attr

canplay callback

Full Usage: canplay callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event canplay.

callback : EventArgs -> unit

The event callback.

Returns: Attr

canplaythrough callback

Full Usage: canplaythrough callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event canplaythrough.

callback : EventArgs -> unit

The event callback.

Returns: Attr

change callback

Full Usage: change callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event change.

callback : ChangeEventArgs -> unit

The event callback.

Returns: Attr

click callback

Full Usage: click callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event click.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

contextmenu callback

Full Usage: contextmenu callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event contextmenu.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

copy callback

Full Usage: copy callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event copy.

callback : ClipboardEventArgs -> unit

The event callback.

Returns: Attr

cuechange callback

Full Usage: cuechange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event cuechange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

cut callback

Full Usage: cut callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event cut.

callback : ClipboardEventArgs -> unit

The event callback.

Returns: Attr

dblclick callback

Full Usage: dblclick callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event dblclick.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

deactivate callback

Full Usage: deactivate callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event deactivate.

callback : EventArgs -> unit

The event callback.

Returns: Attr

drag callback

Full Usage: drag callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event drag.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

dragend callback

Full Usage: dragend callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event dragend.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

dragenter callback

Full Usage: dragenter callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event dragenter.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

dragleave callback

Full Usage: dragleave callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event dragleave.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

dragover callback

Full Usage: dragover callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event dragover.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

dragstart callback

Full Usage: dragstart callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event dragstart.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

drop callback

Full Usage: drop callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event drop.

callback : DragEventArgs -> unit

The event callback.

Returns: Attr

durationchange callback

Full Usage: durationchange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event durationchange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

emptied callback

Full Usage: emptied callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event emptied.

callback : EventArgs -> unit

The event callback.

Returns: Attr

ended callback

Full Usage: ended callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event ended.

callback : EventArgs -> unit

The event callback.

Returns: Attr

error callback

Full Usage: error callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event error.

callback : ErrorEventArgs -> unit

The event callback.

Returns: Attr

event eventName callback

Full Usage: event eventName callback

Parameters:
    eventName : string - The name of the event, without the "on" prefix.
    callback : 'T -> unit - The event callback.

Returns: Attr
Modifiers: inline
Type parameters: 'T

Create a handler for a HTML event of type .

eventName : string

The name of the event, without the "on" prefix.

callback : 'T -> unit

The event callback.

Returns: Attr

focus callback

Full Usage: focus callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event focus.

callback : FocusEventArgs -> unit

The event callback.

Returns: Attr

focusin callback

Full Usage: focusin callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event focusin.

callback : FocusEventArgs -> unit

The event callback.

Returns: Attr

focusout callback

Full Usage: focusout callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event focusout.

callback : FocusEventArgs -> unit

The event callback.

Returns: Attr

fullscreenchange callback

Full Usage: fullscreenchange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event fullscreenchange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

fullscreenerror callback

Full Usage: fullscreenerror callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event fullscreenerror.

callback : EventArgs -> unit

The event callback.

Returns: Attr

input callback

Full Usage: input callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event input.

callback : ChangeEventArgs -> unit

The event callback.

Returns: Attr

invalid callback

Full Usage: invalid callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event invalid.

callback : EventArgs -> unit

The event callback.

Returns: Attr

keydown callback

Full Usage: keydown callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event keydown.

callback : KeyboardEventArgs -> unit

The event callback.

Returns: Attr

keypress callback

Full Usage: keypress callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event keypress.

callback : KeyboardEventArgs -> unit

The event callback.

Returns: Attr

keyup callback

Full Usage: keyup callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event keyup.

callback : KeyboardEventArgs -> unit

The event callback.

Returns: Attr

load callback

Full Usage: load callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event load.

callback : ProgressEventArgs -> unit

The event callback.

Returns: Attr

loadeddata callback

Full Usage: loadeddata callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event loadeddata.

callback : EventArgs -> unit

The event callback.

Returns: Attr

loadedmetadata callback

Full Usage: loadedmetadata callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event loadedmetadata.

callback : EventArgs -> unit

The event callback.

Returns: Attr

loadend callback

Full Usage: loadend callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event loadend.

callback : ProgressEventArgs -> unit

The event callback.

Returns: Attr

loadstart callback

Full Usage: loadstart callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event loadstart.

callback : ProgressEventArgs -> unit

The event callback.

Returns: Attr

lostpointercapture callback

Full Usage: lostpointercapture callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event lostpointercapture.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

mousedown callback

Full Usage: mousedown callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event mousedown.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

mousemove callback

Full Usage: mousemove callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event mousemove.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

mouseout callback

Full Usage: mouseout callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event mouseout.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

mouseover callback

Full Usage: mouseover callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event mouseover.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

mouseup callback

Full Usage: mouseup callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event mouseup.

callback : MouseEventArgs -> unit

The event callback.

Returns: Attr

mousewheel callback

Full Usage: mousewheel callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event mousewheel.

callback : WheelEventArgs -> unit

The event callback.

Returns: Attr

paste callback

Full Usage: paste callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event paste.

callback : ClipboardEventArgs -> unit

The event callback.

Returns: Attr

pause callback

Full Usage: pause callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event pause.

callback : EventArgs -> unit

The event callback.

Returns: Attr

play callback

Full Usage: play callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event play.

callback : EventArgs -> unit

The event callback.

Returns: Attr

playing callback

Full Usage: playing callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event playing.

callback : EventArgs -> unit

The event callback.

Returns: Attr

pointercancel callback

Full Usage: pointercancel callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointercancel.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointercapture callback

Full Usage: pointercapture callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointercapture.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerdown callback

Full Usage: pointerdown callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerdown.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerenter callback

Full Usage: pointerenter callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerenter.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerleave callback

Full Usage: pointerleave callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerleave.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerlockchange callback

Full Usage: pointerlockchange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerlockchange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

pointerlockerror callback

Full Usage: pointerlockerror callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerlockerror.

callback : EventArgs -> unit

The event callback.

Returns: Attr

pointermove callback

Full Usage: pointermove callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointermove.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerout callback

Full Usage: pointerout callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerout.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerover callback

Full Usage: pointerover callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerover.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

pointerup callback

Full Usage: pointerup callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event pointerup.

callback : PointerEventArgs -> unit

The event callback.

Returns: Attr

preventDefault eventName value

Full Usage: preventDefault eventName value

Parameters:
    eventName : string - The name of the event, without the "on" prefix.
    value : bool - True to prevent the default event behavior.

Returns: Attr
Modifiers: inline

Prevent the default event behavior for a given HTML event.

eventName : string

The name of the event, without the "on" prefix.

value : bool

True to prevent the default event behavior.

Returns: Attr

progress callback

Full Usage: progress callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event progress.

callback : ProgressEventArgs -> unit

The event callback.

Returns: Attr

ratechange callback

Full Usage: ratechange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event ratechange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

readystatechange callback

Full Usage: readystatechange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event readystatechange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

reset callback

Full Usage: reset callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event reset.

callback : EventArgs -> unit

The event callback.

Returns: Attr

scroll callback

Full Usage: scroll callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event scroll.

callback : EventArgs -> unit

The event callback.

Returns: Attr

seeked callback

Full Usage: seeked callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event seeked.

callback : EventArgs -> unit

The event callback.

Returns: Attr

seeking callback

Full Usage: seeking callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event seeking.

callback : EventArgs -> unit

The event callback.

Returns: Attr

select callback

Full Usage: select callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event select.

callback : EventArgs -> unit

The event callback.

Returns: Attr

selectionchange callback

Full Usage: selectionchange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event selectionchange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

selectstart callback

Full Usage: selectstart callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event selectstart.

callback : EventArgs -> unit

The event callback.

Returns: Attr

stalled callback

Full Usage: stalled callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event stalled.

callback : EventArgs -> unit

The event callback.

Returns: Attr

stop callback

Full Usage: stop callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event stop.

callback : EventArgs -> unit

The event callback.

Returns: Attr

stopPropagation eventName value

Full Usage: stopPropagation eventName value

Parameters:
    eventName : string - The name of the event, without the "on" prefix.
    value : bool - True to prevent the propagation.

Returns: Attr
Modifiers: inline

Stop the propagation to parent elements of a given HTML event.

eventName : string

The name of the event, without the "on" prefix.

value : bool

True to prevent the propagation.

Returns: Attr

submit callback

Full Usage: submit callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event submit.

callback : EventArgs -> unit

The event callback.

Returns: Attr

suspend callback

Full Usage: suspend callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event suspend.

callback : EventArgs -> unit

The event callback.

Returns: Attr

timeout callback

Full Usage: timeout callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event timeout.

callback : ProgressEventArgs -> unit

The event callback.

Returns: Attr

timeupdate callback

Full Usage: timeupdate callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event timeupdate.

callback : EventArgs -> unit

The event callback.

Returns: Attr

touchcancel callback

Full Usage: touchcancel callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event touchcancel.

callback : TouchEventArgs -> unit

The event callback.

Returns: Attr

touchend callback

Full Usage: touchend callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event touchend.

callback : TouchEventArgs -> unit

The event callback.

Returns: Attr

touchenter callback

Full Usage: touchenter callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event touchenter.

callback : TouchEventArgs -> unit

The event callback.

Returns: Attr

touchleave callback

Full Usage: touchleave callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event touchleave.

callback : TouchEventArgs -> unit

The event callback.

Returns: Attr

touchmove callback

Full Usage: touchmove callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event touchmove.

callback : TouchEventArgs -> unit

The event callback.

Returns: Attr

touchstart callback

Full Usage: touchstart callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event touchstart.

callback : TouchEventArgs -> unit

The event callback.

Returns: Attr

volumechange callback

Full Usage: volumechange callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event volumechange.

callback : EventArgs -> unit

The event callback.

Returns: Attr

waiting callback

Full Usage: waiting callback

Parameters:
    callback : EventArgs -> unit - The event callback.

Returns: Attr
Modifiers: inline

Create a handler for HTML event waiting.

callback : EventArgs -> unit

The event callback.

Returns: Attr

wheel callback

Full Usage: wheel callback

Parameters:
Returns: Attr
Modifiers: inline

Create a handler for HTML event wheel.

callback : WheelEventArgs -> unit

The event callback.

Returns: Attr