SubmitEvent

open class SubmitEvent(val type: EventType<SubmitEvent>, init: SubmitEventInit = definedExternally) : Event(source)

The SubmitEvent interface defines the object used to represent an HTML form's submit event. This event is fired at the

when the form's submit action is invoked.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<SubmitEvent>, init: SubmitEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val submitter: HTMLElement?

The read-only submitter property found on the SubmitEvent interface specifies the submit button or other element that was invoked to cause the form to be submitted.

Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<SubmitEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()