Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Thanked 0 Times in 0 Posts

    Code for Copy & Paste from Html Table in JSP to Excel file

    I am creating a html table in JSP file .
    I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
    Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file

  2. #2
    New to the CF scene
    Join Date
    Sep 2010
    Thanked 0 Times in 0 Posts

    Smile html code for copy

    i hav code for copy thts wht i m giving u

    <script type="text/javascript">

    function CopyToClipboard()


    CopiedTxt = document.selection.createRange();




    <input type="button" onClick="CopyToClipboard()" value="Copy" />


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts