Javascript validation...

Seems to be a bit of a problem when using javascript..

my code is something like:

<script type="text/javascript">

function x()
{
	if(true && false)
	{
		//
	}
}
</script>

and i get:
   if(true && false)
           ^Error: character "&" is the first character of a delimiter but 
occurred as data.


-----

this should not be happening...

i can fix the prob by putting the javascript in a external file
<script type="text/javascript" src="false.js" />

..... :)

is this an error?







_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

Received on Wednesday, 31 July 2002 04:24:52 UTC