var newObject = new Object()
newObject.object1 = document.createElement("TD")
try
{
newObject.object2 = document.createElement("IFRAME")//不能创建iframe
}
catch(e){alert(e.description)}
In Microsoft?Internet Explorer 4.0, the only new elements you can create are IMG, AREA, and OPTION. As of Internet Explorer 5, you can create all elements in script, except for FRAME, IFRAME, and SELECT