RE: Where to put <SCRIPT>
by "Christian Lavoie" <clavoie(at)enter-net.com>
|
Date: |
Tue, 25 Aug 1998 13:31:13 -0400 |
To: |
<hwg-theory(at)hwg.org> |
In-Reply-To: |
gmx |
|
todo: View
Thread,
Original
|
|
> Hi,
> is there any rule according to where to put JS inside a HTML-file?
> Sometimes, it is inavoidable to put it inside the BODY, but that
> generally messes things up. Thus, long function definitions und stuff:
> inside HEAD? Or between HEAD and BODY?
I prefer putting it inside the HEAD. But then, I also make a almost total
use of the src="foo.js" attribute.
I've looked into the W3C's HTML 4.0 specs (didn't had the others handy), and
they recommends NOT to put it between HEAD and BODY.
----
Christian Lavoie
UIN: 947212
E-Mail: clavoie(at)enter-net.com
HWG hwg-theory mailing list archives,
maintained by Webmasters @ IWA