Click to See Complete Forum and Search --> : JavaScript SRC tag


TheEvilGeek
04-07-2003, 06:21 PM
Hey there,

I've been recently working on a javascript which consists of, in essence, a loop which document.write's a bunch of <.script language="javascript" src="source.js><./script> tags into a table. However, I've found that when the code of the included javascript document.write's, the output appears on the bottom of the page instead of within the tables that are being printed along with the src= tags.

If I replace the document.write("<script lang... src=..." etc., with a simple document.write("hello!"), the text appears where it should.

Is there some odd property of such included scripts that I should worry about? Is there anything I can do to fix this?

Thank you very much,

- EvilGeek

TheEvilGeek
04-07-2003, 09:18 PM
Thank you very much- I was afraid of exactly that. Are there any potential commands- instead of document.write (since its looping, they will always be executed after the first layer of the javascript, and the write will be at the end of the age) that can definately write to the same area from which it is called? Thank you very much

- EvilGeek

TheEvilGeek
04-08-2003, 02:22 PM
Thank you very much Dave, I was not aware of that property.

-- PHEW! --