Friday, 3 February 2012

Dynamic in-line scripts in IE8

If you add an in-line JavaScript script to an HTML page in IE8 using document.write() during initial load, it doesn't execute: if such script isn't in-line (i.e. has a src element) then everything behaves fine.  As IE (various versions) have odd behaviour with dynamic scripts (whether or not written using document.write) this isn't a complete surprise - but it is inconvenient!

No comments:

Post a Comment