Forum Moderators: open
[edit]:
or for the more pure DOM method approach:
var newdiv = document.createElement('div');
var divIdName = 'newdivnbyme';
newdiv.setAttribute('id',divIdName);
document.getElementsByTagName("body")[0].appendChild(newdiv);
[edited by: Fotiman at 3:23 pm (utc) on Mar. 14, 2007]