Re: javascript in <head> or in <body> ?
| From: | Greg Donald | Date: | Tue, 07 Aug 2007 19:26:02 +0000 |
| Subject: | Re: javascript in <head> or in <body> ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260307@lists.php.net to get a copy of this message | ||
On 8/7/07, C.R.Vegelin <cr.vegelin@hetnet.nl> wrote:
> Are there any rules when to include javascript in <head> or in <body> ?
> For example,
> <script type="text/javascript">
> function reload(form)
> { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;
> self.location='QueryForm.php?Chapter=' + val ;
> }
> </script>
w3 says it can appear in either:
<snip>
The SCRIPT element places a script within a document. This element may
appear any number of times in the HEAD or BODY of an HTML document.
</snip>
http://www.w3.org/TR/html4/interact/scripts.html#h-18.1
--
Greg Donald
http://destiney.com/