Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1067427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:09:20+00:00 2026-05-16T20:09:20+00:00

I got a question to ask on building firefox plugin, basically my aim is

  • 0

I got a question to ask on building firefox plugin, basically my aim is to do following things,

1) In my plugin I want to show right click context menu item for only links[anchor tags] and hide the menu item for rest of the page

2) How to add dynamic list to my menu, i.e., adding the number of menu list items dynamically depending upon user’s choice.

Can someOne point me to a right direction

Thanks !!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:09:21+00:00Added an answer on May 16, 2026 at 8:09 pm
    1. Bind an event listener for the contextmenu event and check whether the clicked element is a link, e.g.:

      window.addEventListener("contextmenu", function(e) { 
          var menu = document.getElementById('your-menu-id');
          if(e.target.nodeName == 'A') {
              menu.hidden = false;
          }
          else {
              menu.hidden = true;
          }
      }, false);
      

      Read more about event properties and the menu element properties.

    2. Have a look at the menu element‘s appendItem method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got the following question to ask: How do you compile taglib with an
hi i've got question i've made simple form with attachment input and i want
I've got a relatively simple Cocoa on Mac OS X 10.6 question to ask.
I'm new to Makefile stuff and want to ask a question about Makefiles. Suppose
Hi i got a question to ask u all Here is my codding string
I got a small question with a big background. Let me ask a short
I am just a noob in C#, and I've got this question to ask
I've got a very silly question to ask. I'm using NetBeans to built a
I got here to ask this question because none of the solutions I've found
I used to ask this question in this SO and already got the solution,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.