I use this to write out text to a DIV tag named 'history':
if (document.layers) { // Netscape
document.layers['history'].document.write(txt);
document.close();
}
if (document.all) // IE
document.all['history'].innerHTML = txt;
> I am validating a form with javascript and any information that is
invalid
> i write back out using javascript. when i write it back out im
> using "document.write(variable_name)". This works in Internet Explorer
> but doesn't seem to work in Netscape. If anyone knows the problem or
> another solution to writing out a message back to the document in
> javascript that would be of great help.