Need javascript for copy& paste

Posted on 2009-02-17
Last Modified: 2012-05-06
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 .
Question by:arnold7778
    1 Comment
    LVL 5

    Accepted Solution

    There is no control over "system" context menu, but you may emulate lightbox-based context menu and do on click on it's items.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now