Nested Documents- small sample

L

Larry

I use this code:

main.htm
<script language="javascript" src="one.htm"></script>

one.htm
document.write('<script language="javascript" src="two.htm"></script>')
document.write('I am in One.')

two.htm
document.write('I am in Two.')

When I preview main.htm I get:
I am in One. I am in Two.

I expected the output to look like
I am in Two. I am in One.

What do I need to change to get the latter output. Thank you,
Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top