WindowPostMessageOptions Class

The options of Window.PostMessage (https://html.spec.whatwg.org/multipage/nav-history-apis.html#windowpostmessageoptions).

public sealed class WindowPostMessageOptions : StructuredSerializeOptions
Inheritance
StructuredSerializeOptions WindowPostMessageOptions

Constructors

NameDescription
WindowPostMessageOptions()

WindowPostMessageOptions()

StructuredSerializeOptions.cs
public WindowPostMessageOptions()

No documentation is available.

Properties

NameDescription
TargetOriginGets the origin the target window must have for the message to be delivered: an absolute URL (only its origin is used), * (any origin) or / (the origin of the caller).

Gets the origin the target window must have for the message to be delivered: an absolute URL (only its origin is used), * (any origin) or / (the origin of the caller).

public string TargetOrigin { get; init; }