Of course you don't want to have the <script> tag in the external js file.
<script> is an (x)html tag, so it does not belong in a text/javascript file.

Patrick H. Lauke
__________________________________________________________________________
re·dux (adj.): brought back; returned. used postpositively. [latin : re-,
re- + dux, leader; see duke.]
http://www.splintered.co.uk | http://www.photographia.co.uk |
http://redux.deviantart.com

----- Original Message ----- 
From: "Seona Bellamy"
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 22, 2004 12:47 AM
Subject: Re: [WSG] Comment syntax in external javascript files?


> Just a quick related question, but when you put your javascript into an
> external file, do you need to put the <script> tags into the file as well?
Or
> do you just have the code in there and then call it in via the script tag
below?
>
> Cheers,
>
> Seona.
>
> Quoting Lachlan Hardy <[EMAIL PROTECTED]>:
>
> > [EMAIL PROTECTED] wrote:
> > > <script type="text/javascript" src="thing.js"></script>
> >
> > I do it as per Dan's example above. It validates as XHTML 1.0 Strict and
> > I haven't identified any problems with it
> >
> > Cheers,
> > Lachlan
> >
> > *****************************************************
> > The discussion list for http://webstandardsgroup.org/
> > See http://webstandardsgroup.org/mail/guidelines.cfm
> > for some hints on posting to the list & getting help
> > *****************************************************
> >
> >
>
>
>
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> *****************************************************
>
>
>
>


*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to