0

I have a webpage where a dynamic table is generated when the user specifies certain things. I want to display the results in a different format (in a report style) without running the queries again (to maintain consistent results).

I checked this question and related ones, but they pull content from a page, where as what I want is to push the content to a new page.

Basically what I want is to display #my-table on a new tab when the button is clicked. enter image description here

S.Dan
  • 1,826
  • 5
  • 28
  • 55
  • 4
    What about storing the data in json format and store the json in localstorage. – Anirudha Gupta Jun 08 '17 at 16:05
  • I didn't know about it and I just read about it, I think that is the solution to my problem, thanks. Maybe add as a solution so I can accept it? – S.Dan Jun 08 '17 at 16:10

1 Answers1

1

You can store your data in localStorage or sessionStorage. later on, you can access same data on another page.

Anirudha Gupta
  • 9,073
  • 9
  • 54
  • 79