@duckduckgo/content-scope-scripts
    Preparing search index...

    Interface ContextMenuEvent

    Metadata collected from a contextmenu DOM event, sent from C-S-S isolated to the native layer.

    interface ContextMenuEvent {
        elementTag?: string | null;
        imageAlt?: string | null;
        imageSrc?: string | null;
        linkUrl: string | null;
        selectedText: string | null;
        title?: string | null;
    }
    Index

    Properties

    elementTag?: string | null

    The lower-cased tag name of the element that was right-clicked.

    imageAlt?: string | null

    The alt attribute of the target element, or null.

    imageSrc?: string | null

    The src of the target element if it is a media element (img, video, etc.), or null.

    linkUrl: string | null

    The href of the closest anchor ancestor, or null if the target is not inside a link.

    selectedText: string | null

    The current window text selection, or null if nothing is selected.

    title?: string | null

    The title attribute from the target or its closest ancestor with a title, or null.