I think before I start off with the question I'll explain the situation... It'll make more sense that way (hopefully).
I've been asked to create a dashboard HTML page that will include charts generated in other HTML pages.
Each of the charts in those HTML pages (there are approximately 6 different pages) are only loaded when that particular HTML page is loaded, once that particular HTML page is closed, the chart no longer exists. I was thinking if whether it is possible to read the content in any one of those particular HTML pages and re-creating the chart and displaying it in the dashboard.htm page.
Maybe something like this?
html page name: chocolate.htm
<p id="test">Some text here</p>
var thePage = document.open('chocolate.htm');