Hi,

Div innerHTMl not working in IE6.

Code:
function toggleVisiblity()
{
  var name1="eg";
 
	var tbl = document.getElementById("chart1");alert(tbl);alert(tbl.style.display);
alert(tbl.nodeName);	var clink=document.getElementById("chartlink");

    if(tbl!=null){
	if (tbl.style.display == 'block')
	{
	    tbl.innerHTML="";
		tbl.style.display = 'none';
		
	}
	else
	{
	    tbl.innerHTML="<img src=../../temp/"+name1+".png>";
		tbl.style.display = 'block';
 	
	}
	}
}
Code:
<div align=left><a id='chartlink' href=# onclick=\"toggleVisiblity()\"><img src=\"../images/chart.gif\" border=0></a></div><div id='chart' style='display:none;' align=center></div>
In this code everytime eg.png is a new image.But the new image is not shown in the div but it is updating in the temp folder.