Re: javascript in <head> or in <body> ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/7/07, C.R.Vegelin <cr.vegelin@xxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux