# Download table data via JavaScript

**URL:** <https://forums.losant.com/t/download-table-data-via-javascript/2373>\
**Category:** Help\
**Tags:** experience\
**Created:** [November 14, 2019, 2:04am UTC](https://forums.losant.com/t/download-table-data-via-javascript/2373 "2019-11-14T02:04:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [November 14, 2019, 2:04am UTC](https://forums.losant.com/t/download-table-data-via-javascript/2373/1 "2019-11-14T02:04:36Z")

</div>

If I have a simple experience page displaying data in a simple html table, would there be a reason I couldn’t make that data downloadable as csv with a simple JavaScript?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [November 15, 2019, 2:04pm UTC](https://forums.losant.com/t/download-table-data-via-javascript/2373/3 "2019-11-15T14:04:58Z")

</div>

Hi @Lars_Andersson,

I have not done this myself, but I do not see a reason why it couldn’t be done with custom Javascript in an experience. I also found an article [here](https://www.codexworld.com/export-html-table-data-to-csv-using-javascript/) that may be helpful.

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [November 15, 2019, 2:17pm UTC](https://forums.losant.com/t/download-table-data-via-javascript/2373/5 "2019-11-15T14:17:30Z")

</div>

I tried that, but it wouldn’t let me declare a function in a page, but is maybe because I did it wrong.
