Tuesday, April 21, 2009

JavaScript Dynamic content Generation Problem

if you generate dynamic content through JavaScript by
document.write('<html><head><h2>'+ varHeading +'</h2></head><body></body></html>');
this page will works fine but if you generate more dynamic content from this page onward it will not display anything without any error.
Solution:
every phase should end with document.close();

No comments: