Table of Contents

Class SubmitEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SubmitEvent interface defines the object used to represent an {{Glossary("HTML")}} form's Submit() event. This event is fired at the {{HTMLElement("form")}} when the form's submit action is invoked.

[Value("SubmitEvent")]
public class SubmitEvent : Event
Inheritance
SubmitEvent
Inherited Members

Remarks

Constructors

SubmitEvent()

public SubmitEvent()

SubmitEvent(string, SubmitEventInit)

The SubmitEvent() constructor creates and returns a new SubmitEvent object,
which is used to represent a Submit() event
fired at an HTML form.

public SubmitEvent(string type, SubmitEventInit eventInitDict = null)

Parameters

type string
eventInitDict SubmitEventInit

Remarks

Properties

Submitter

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.

[Value("submitter")]
public HTMLElement? Submitter { get; }

Property Value

HTMLElement

An element, indicating the element that sent
the Submit() event to the form. While this
is often an input element whose type is submit or a button element whose type is submit, it could be some other element which has initiated a
submission process.If the submission was not triggered by a button of some kind, the value of submitter is null.

Remarks