document.write issue

Posted by Dhana on Stack Overflow See other posts from Stack Overflow or by Dhana
Published on 2010-05-15T00:30:21Z Indexed on 2010/05/15 0:34 UTC
Read the original article Hit count: 647

Filed under:
|

I inherited a piece of code that uses document.write to insert a certain div when the code is encountered. Unfortunately, this code is causing issues in IE where the code fails.

Is there a way around this to insert a div on the page without it? I can't make a big change since this code is currently used by many clients(it's like google adsense kind of thing).

Is there an alternative to document.write - I don't have a way to capture a div on the page since it's something plugged in by anyone.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about document.write