|
> I have seen text book examples that I assume work where the script code > is earlier than the button definitions. the page is executed from top to bottom, including script codes. this allows an old form of "dynamic" part of page using document.write("...") the examples you've seen probably don't use elements declared after the script (or just to learn you can't) or maybe they just do so to declare functions that are called by the onClick, onXXX attributes of the button or maybe they use the keyword to defer the execution (but i've rarely seen it) <SCRIPT LANGUAGE="JavaScript" defer="defer"> this may be a way not to put the code at the end of the page if you have access to it Rob Dixon
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.