If you’re trying to alter part of a page, you can do this by creating positioned DIV blocks in the area you want to alter, and using a combination of document.write for Netscape Navigator and innerHTML for Internet Explorer.
For Netscape, you can do something such as:
and for IE:
layername.innerHTML = "
For both, the contents of this block are replaced: