Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

export html table to excel

<script src="https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.2.0/js/tableexport.min.js" integrity="sha512-XmZS54be9JGMZjf+zk61JZaLZyjTRgs41JLSmx5QlIP5F+sSGIyzD2eJyxD4K6kGGr7AsVhaitzZ2WTfzpsQzg==" crossorigin="anonymous" referrerpolicy="no-referrer">
TableExport(document.getElementsByTagName("table"), {
    filename: 'excelfile',            
    sheetname: "sheet1"                     
});
</script>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #export #html #table #excel
ADD COMMENT
Topic
Name
5+7 =