• Generate a clipboard event on a node.

    Parameters

    • node: HTMLElement

      The element on which to generate the event.

    • type: "copy" | "cut" = 'copy'

      The type of event to generate. 'paste' events cannot be programmatically generated.

      Notes

      This can only be called in response to a user input event.

    Returns void