I get this script error “Invalid argument” when using appendChild(). When in Microsoft Visual Studio Debugger I see “htmlfile: Invalid argument”, and the line it blows up on is t.appendChild(n);
The div I want to append the child div to is the top most div in the dom.
Anyone see what I am doing wrong here?
var t = document.parentWindow.parent.parent.document.getElementById("mod");
var n = document.createElement("div");
n.setAttribute("id", "c_dlg");
t.appendChild(n);
Thanks