Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: javascript ?


Message #1 by JonGrman21@a... on Thu, 26 Jul 2001 14:23:32 EDT
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.

  Return to Index