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.

NEEDED JAVASCRIPT FOR:
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 .
arnold7778Asked:
Who is Participating?
 
BarsMonsterConnect With a Mentor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.