why do you need to use document.write()? if you want to refresh part of the page or change some html code, you can use some container's innerHTML propertyfor example, if you have
<div id="dvShow">hello</div>you can change the content with
document.all("dvShow").innerHTML = "<B>world</B>";of course, my code only works with IEto refresh the whole page, you can use
window.location.reload(true);again, this only works in IE