> I've written pages where I spew all of the HTML out and > then at the very end (after the </html>) I add my JavaScript. > Something like: > > </body> > </html> > <script> > document.form[0].field.value = 'something' > </script> > > This way the script won't run until after the whole page is > created.
For what it's worth, you can get the same result and have valid HTML documents as well, by writing the code you want to run last as a function, and calling that function in the onload event handler of the BODY tag. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

