faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

why aren't layers created within a script available until the script exits?

Aug 1st, 2001 10:38
Richard Evans,


(NN4) - Inside of a script section, I create some HTML which I then pass 
to document.write.

Within this HTML is a <DIV Id=unique_name></DIV> section.

While inside of this script, I can not find any document.layers layer 
for this.

But, if I add a link within the html which invokes more script (after 
everything has loaded and rendered) then the layer object is defined.