Chiedo la cortesia di collaudarmi questa paginetta asp con IE e Firefox.

Mi spiego.

In un <div uso innerHTML per mettere un alert e lanciarlo:

Ho provato ieri e funzionava con Firefox e non con IE

Ieri, con un alert, IE restituiva l'innerHTML del div come:

prova script>alert....cioè perdeva il carattere <

Provo oggi, dopo aver aggiornato il sistema con window update e vedo che funziona benissimo.

Allora, o io dò i numeri o hanno corretto IE

codice:
<html>
	<head>
		<title>a</title>
	<script id="clientEventHandlersJS" language="javascript">
<!--

function Button1_onclick() {
	document.getElementById("div1").innerHTML = "prova<sc" + "ript>alert('prova');</scr" + "ipt>";
	alert(document.getElementById("div1").innerHTML);
	execJS(document.getElementById("div1"));
}

function execJS(node) 
{
	var bSaf = (navigator.userAgent.indexOf('Safari') != -1);
	var bOpera = (navigator.userAgent.indexOf('Opera') != -1);
	var bMoz = (navigator.appName == 'Netscape');

	var st = node.getElementsByTagName('script');
	var strExec;
	for(var i=0;i<st.length; i++) 
	{     
		if (bSaf) 
		{
			strExec = st[i].innerHTML;
		}
		else if (bMoz) 
		{
			strExec = st[i].textContent;
		}
		else 
		{
			strExec = st[i].text;
		}
		try 
		{
			eval(strExec);
		} 
		catch(e) 
		{
			alert(e);
		}
	}
}

//-->
</script>
</head>
	<body MS_POSITIONING="FlowLayout">
		<INPUT type="button" value="Button" ID="Button1" NAME="Button1" language="javascript" onclick="return Button1_onclick()">
		<div id="div1"></div>
	</body>
</html>