[thelist] Document.write Issue
Luther, Ron
thelist at lists.evolt.org
Mon Apr 29 11:12:01 2002
Hi Josh,
Could you use a blank named div as a placeholder and use JS to rewrite the 'innerHTML' or 'innerText' of the named div with the content from the cookie?
HTH,
RonL.
-----Original Message-----
From: Feingold Josh S [mailto:Josh.S.Feingold@irs.gov]
I am trying to write one of my cookies in the body of my document.
function links() {
document.write ("<b>Current Links</b><br>")
for (x=0;x<listoflinks.length - 1;x++) {
thelink = listoflinks[x].split('%e%q%')
document.write("<a href='" + thelink[1] + "'>" + thelink[0] + "</a>
<br>")
}
}
The problem is that when the function is called, it redraws the entire page.