• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Need javascript for copy& paste

f i right click in firefox browser i added a extra context menu by using the firefox extensions if i click that menu some functionality to be added so  needed a java script.

if i select (highlight)some text from a window which is opened in firefox browser and i rightclick in the browser window   context menu(which is added my me) will appear and i click the menu  the selected text must be copied and pasted in a new window.

Iam attaching a file which is used when we select some text and click a button the selected text is added to a text area. i need the same functionality but for context menu .
1 Solution
There is no control over "system" context menu, but you may emulate lightbox-based context menu and do window.open on click on it's items.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now