questo codice funziona con IE7, Firefox2 e Opera9
function createDinamicDiv()
{
var div = document.createElement('div');
div.setAttribute('id', 'PROVA');
div.setAttribute('class','boxLeft');
div.className = "boxLeft";
var txt = document.createTextNode('Ti Ho Fregato Bastardo!');
var newvar = document.getElementById("div1");
div.appendChild(txt);
newvar.appendChild(div);
alert(div);
}
Per quanto riguarda le pagine master e tutte le altre cose interessanti, ..., non commento.![]()