Safari Developer Library

Developer

SafariExtensionContextMenuEvent Class Reference

Options
Deployment Target:

On This Page

SafariExtensionContextMenuEvent

Instances of the SafariExtensionContextMenuEvent class are used to notify listeners when a context menu is about to be displayed. More...

Inheritance


Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

Availability


Available in Safari 5.0 and later.
  • userInfo Property

    Information about the current context menu event.

    Declaration

    JavaScript

    readonly attribute any userInfo

    Discussion

    From within the web content area, you listen for a DOM context menu event, and then call the setContextMenuEventUserInfo method. The value you provide is used as the userInfo property by the SafariExtensionContextMenuEvent and SafariExtensionContextMenuItemValidateEvent events when they are sent.

    Availability

    Available in Safari 5.0 and later.

  • contextMenu Property

    The context menu being built up.

    Declaration

    JavaScript

    readonly attribute SafariExtensionContextMenu contextMenu

    Availability

    Available in Safari 5.0 and later.