Qualcuno mi sa dire perché il seguente codice funziona su firefox ma su ie no?
Codice:
<html>
<head>
<script type="text/javascript">
function carica() {
var a = document.createElement("table");
var b = document.createElement("tr");
var c = document.createElement("td");
c.innerHTML = "asd";
b.appendChild(c);
a.appendChild(b);
document.body.appendChild(a);
}
</script>
</head>
<body onload="carica();">
</body>
</html>
Grazie, sato