Table of Contents

Class FormDataEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The FormDataEvent interface represents a formdata event — such an event is fired on an HTMLFormElement object after the entry list representing the form's data is constructed. This happens when the form is submitted, but can also be triggered by the invocation of a FormData(HTMLFormElement, HTMLElement?) constructor.

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

Remarks

This allows a FormData object to be quickly obtained in response to a formdata event firing, rather than needing to put it together yourself when you wish to submit form data via a method like Windowfetch (see Using FormData objects).

-Windowfetch
-FormData
-Using FormData objects
-Form

See also on MDN

Constructors

FormDataEvent()

public FormDataEvent()

FormDataEvent(string, FormDataEventInit)

The FormDataEvent() constructor creates a new FormDataEvent object.

public FormDataEvent(string type, FormDataEventInit eventInitDict)

Parameters

type string
eventInitDict FormDataEventInit

Remarks

Properties

FormData

The formData read-only property of the FormDataEvent
interface contains the FormData object representing the data contained in
the form when the event was fired.

[Value("formData")]
public FormData FormData { get; }

Property Value

FormData

A FormData object.

Remarks