javascript - document.write issue -


I inherited a piece of code that uses the document. Unfortunately, this code is causing problems in IE, where the code fails.

Is there no way around it, without putting a div on the page? I can not make a big change because this code is currently used by many customers (it's like Google Adsense).

Is there any alternative to the document. Write - I do not have a way to capture a device on the page because it is plugged in by somebody

Something can do something like this

  var newDiv = document.createElement ('div'); Document.getElementById ('parentElementId'). Appendabil (newdiv);  

Comments