Possible with Javascript? (form -> table -> excel)

I believe it’s possible but I’m not entirely sure how to go about doing this.

I have a really extensive form (~80 questions) and I want to be able to click a button and open a new window with a table containing all of the information gathered from the form. Then on that page to have a button to export all the data from the table into excel.

Any ideas? Or put me in the right direction?

It is not possible with JavaScript - you will need server side scripting to handle it.