<html>
<head></head>
<body>
<script type = "text/javascript">
var x = 5;
var y = 8;
if (x < 6)
{
document.write("They are equal");
}
else
{
document.write{"They are NOT equal");
}
</script>
</body>
</html>
views:
150answers:
1
+12
A:
I think you have a syntax error:
document.write{"They are NOT equal");
Should be
document.write("They are NOT equal");
ChaosPandion
2010-02-01 19:37:52
damn it. I can't believe I didnt see this after 15 minutes :( Thanks ChaosPandion!
noobzilla
2010-02-01 19:40:28
@idunno - I've done much worse. :)
ChaosPandion
2010-02-01 19:41:23
you should see if it's possible to code in a font that will reduce this problem.
CrazyJugglerDrummer
2010-02-01 21:22:38