[Project_owners] Overlaying Right-click Context Menu

Babak Esfandiari babak at sce.carleton.ca
Wed Nov 10 18:35:24 EST 2004

I'm fairly new to Mozilla development, but I think I know the answer to 
this one:

This link gives a good description of the solution to your problem:


Replace "!gContextMenu.isTextSelected" in the above solution with 
"!gContextMenu.onLink" for your particular problem.



Sudhakar Chandra wrote:
> I am the author of a news aggregator.  I want to make it easy for my 
> users to be able to add a news feed by right-clicking and selecting 'Add 
> this feed to news aggregator' or something along those lines.
> I know that I have to overlay popup id=contentAreaContextMenu to add my 
> item to the right-click popup.
> I want my 'Add this feed to news aggregator' to appear only for right 
> clicks on links and not the entire content area.  Is there a way to do 
> this?  A code sample or a pointer to an extension that does something 
> like this would be appreciated.
> Thaths

More information about the Project_owners mailing list