Skip to content

MessagePort.postMessage contains example for Window.postMessage #40318

@hannobraun

Description

@hannobraun

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage

What specific section or headline is this issue about?

Examples

What information was incorrect, unhelpful, or incomplete?

The Examples section for MessagePort.postMessage has an example that shows a call to postMessage whose arguments don't line up with the parameters documented above. It seems like this is actually a call to Window.postMessage.

What did you expect to see?

Either no example, or an example showing the actual use of the function documented on this page.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsclosed: questionA user misinterpretation or support question. No action required.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions