Re: xhtml+javascript. bug?

On Mon, 11 Jun 2001, Peter K. Sheerin wrote:

> I had the same problem, but solved it using the combination of HTML and
> Javascript comment tags, as in:
>
> <!--
> js code
> //-->
>
> Can you explain the difference between why each one of these methods works,
> and if there are any problems with the one I used?

An XHTML browser will ignore your JavaScript because it's commented out.

> Do I *really* need to use the CDATA marking?

Why not use external JavaScript files?

-- 
Liam Quinn

Received on Monday, 11 June 2001 19:55:49 UTC