My code generates a large HTML page. At the end of the report, I want to update the top of the page with a summary of the report. But I can’t figure out how to add data to a ‘div’ or ‘span’ area at the top of the form.
Here is the HTML output:
[CODE]<html><head><body>
…text, table, more text…
<div>
<span style=”font: 12pt Time New Roman; font-weight:bold;text-decoration:underline”>
Countries selected</span>
<br><br>
<div id=”searchParms”></div>
… lots and lots of data goes here…
</div>
All the stuff printed in “lots of data” comes from a set of documents, each of which stores a country. I want to add the countries from those documents to div “searchParms” at the top of the form. Bear in mind, the countries are not available to me until I have printed out all the data.
I’ve tried adding the list by setting window.document.searchParms = “the list of countries”
I’ve also tried window.document.searchParms.innerText, window.document.forms[0].searchParms and window.document.forms[0].searchParms.innerText.
How can I add the list of countries to the top of the report?
Thanks,
-Jeff