Skip to content

Page for MouseEvent() doesn't show how to use it #20329

@NatoBoram

Description

@NatoBoram

MDN URL

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

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

This page shows that we can use new MouseEvent(type, options) to create a MouseEvent but it doesn't show how to use it

What did you expect to see?

An example that can replace this code:

const mouseEvent = document.createEvent("MouseEvent")
mouseEvent.initEvent("mouseover")
element.dispatchEvent(mouseEvent)

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions