Linux Mac OSX Windows

  
[scriptable, uuid(2f977d56-5485-11d4-87e2-0010a4e75ef2)]
interface nsIContextMenuInfo : nsISupports

Attributes

 Given the <CODE>CONTEXT_LINK</CODE> flag, <CODE>targetNode</CODE> may not
 nescesarily be a link. This returns the anchor from <CODE>targetNode</CODE>
 if it has one or that of its nearest ancestor if it does not.
readonly attribute AString associatedLink
 Given the <CODE>CONTEXT_BACKGROUND_IMAGE</CODE> flag, these methods can be
 used in order to get the image for viewing, saving, or for the clipboard.

 @return <CODE>NS_OK</CODE> if successful, otherwise <CODE>NS_ERROR_FAILURE</CODE> if no background
 image was found, or NS_ERROR_NULL_POINTER if an internal error occurs where we think there is a 
 background image, but for some reason it cannot be returned.
readonly attribute imgIContainer backgroundImageContainer

        
readonly attribute nsIURI backgroundImageSrc
 Given the <CODE>CONTEXT_IMAGE</CODE> flag, these methods can be
 used in order to get the image for viewing, saving, or for the clipboard.

 @return <CODE>NS_OK</CODE> if successful, otherwise <CODE>NS_ERROR_FAILURE</CODE> if no
 image was found, or NS_ERROR_NULL_POINTER if an internal error occurs where we think there 
 is an image, but for some reason it cannot be returned.
readonly attribute imgIContainer imageContainer

        
readonly attribute nsIURI imageSrc
 nsIContextMenuInfo

 A helper object for implementors of nsIContextMenuListener2.

 @status UNDER_REVIEW


 The DOM context menu event.
readonly attribute nsIDOMEvent mouseEvent
 The DOM node most relevant to the context.
readonly attribute nsIDOMNode targetNode