Download table data via JavaScript

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?

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 that may be helpful.


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