by tesagen
5. september 2009 22:01
Javascripts
At the moment, we have our script between the two BODY tags. And it works perfectly well here. It's quite happy where it is. However, SCRIPTS are best kept in the HEAD section of your HTML. This is because any code in the HEAD section will be dealt with first by the browser. And besides, it's neater up there. You're not cluttering up your HTML code with lots of JavaScript.
<HEAD>
<TITLE>A First Script</TITLE>
<SCRIPT LANGUAGE = JavaScript>
document.write("Hello World")
</SCRIPT>
</HEAD>