nsIContextMenuInfo

IID:2f977d56-5485-11d4-87e2-0010a4e75ef2
Inherits From:nsISupports

Properties

readonly AString associatedLink

Given the CONTEXT_LINK flag, targetNode may not nescesarily be a link. This returns the anchor from targetNode if it has one or that of its nearest ancestor if it does not.

readonly imgIContainer* backgroundImageContainer

Given the CONTEXT_BACKGROUND_IMAGE flag, these methods can be used in order to get the image for viewing, saving, or for the clipboard.

readonly nsIURI backgroundImageSrc

readonly imgIContainer* imageContainer

Given the CONTEXT_IMAGE flag, these methods can be used in order to get the image for viewing, saving, or for the clipboard.

readonly nsIURI imageSrc

readonly nsIDOMEvent mouseEvent

The DOM context menu event.

readonly nsIDOMNode targetNode

The DOM node most relevant to the context.


References

This interface is passed as an argument to the following methods:

nsIContextMenuListener2.onShowContextMenu

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com