WindowPostMessageOptions Class
The options of Window.PostMessage (https://html.spec.whatwg.org/multipage/nav-history-apis.html#windowpostmessageoptions).
public sealed class WindowPostMessageOptions : StructuredSerializeOptions- Inheritance
StructuredSerializeOptionsWindowPostMessageOptions
Constructors
| Name | Description |
|---|---|
| WindowPostMessageOptions() |
WindowPostMessageOptions()
StructuredSerializeOptions.cspublic WindowPostMessageOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| TargetOrigin | 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). |
TargetOrigin
StructuredSerializeOptions.csGets 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; }