by, 05-17-2009 at 12:48 AM (18049 Views)
That is indeed what happens if we use the script given at http://www.dynamicdrive.com/dynamici...axincludes.htm to include the menu-files of http://www.dynamicdrive.com/dynamici...menu/index.htm. Try for yourself. Things won't work in IE. (The only way to get out of this situation is to replace the external js belonging to the files_to_be_included with internal js).
Of course, the cases mentioned here are only illustrations of a more general problem that we may encounter if we use document.write for including external content in an 'unwise' way.