Forum Moderators: open
To "...update the body text after it has loaded...", do as follows:
Say in your html you have <div id="blah">some text</div>
Then in your javascript which gets executed using the onload method:
document.getElementById("blah").innerHTML = "Different Text";
Also, you can add child nodes (e.g. divs or whatever tag you want) with createElement() and appendChild()
e.g. say you have <div id="table_holder"> </div>
Then you can do:
var table_div = document.getElementById("table_holder");
var table_to_insert = document.createElement("table");
table_div.appendChild(table_to_insert);
Similarly, you can add tr's as children of the table_to_insert and td's as their children... or whatever tags you want to add.
Note that all this may not help with your initial problem (getting the page to load faster). All the javascript needs to get downloaded... Describe what you are trying to do in more detail, and someone may be able to offer more help.
Hope that makes sense
Shawn