The DOM lets you dynamically create and add elements to the page, such as the following, which creates an image on the fly and adds it to the end of the document: Code: var img=document.createElement("img") img.setAttribute('src', 'dd.gif') document.body.appendChild(img) Ideally such an operation should be done after the document has loaded, though in most browsers, I noticed you can get away with it. In IE6 and IE7, however, things get a lot more ...
var img=document.createElement("img") img.setAttribute('src', 'dd.gif') document.body.appendChild(img)
Updated 06-04-2009 at 12:45 AM by ddadmin
IE8 has yet to formally launch, though the Beta and RC releases have been available for download for developers and those curious already. The advent of a new browser always brings up new issues with compatibility, and IE8 beta is no different. I've gotten quite a few emails lately regarding a DHTML script or CSS code not quite working properly in the new browser. A handful of scripts on DD fall into this group. I plan on eventually checking all scripts on DD for IE8 once it's officially released, ...
Updated 02-27-2009 at 06:39 AM by ddadmin