Web Analytics Made Easy -
StatCounter Code for Copy & Paste from Html Table in JSP to Excel file - CodingForum

Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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();

    CopiedTxt.execCommand("Copy");

    </script>


    <form>



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

    Comment

    Working...
    X