Alright, first off, sorry about the asinine question but I'm really new at this. I make an alert box that's supposed to come up under a certain condition, but the same one seems to pop up regardless of what I change the conditional value to, I know this question is probably beneath you guys...Also, pardon my somewhat...informal approach to writing practice script...
CODE
<html>
<head>
<title>Variable Test</title>
<script type="text/javascript">
balls=2;
wiener=1;
genitals=balls+wiener;
document.write(genitals);
if (genitals=3)
{
alert(" "+"Hey! Your Balls Are Showing!")
}
else
{
alert(" "+"Go on, Git!!!")
}
</script>
</head>
<body>
</body>
</html>
Everything appears to be written correctly, but if it was I couldn't change the value of wiener or balls and still get an alert message that tells me that said balls are showing. Thanks for your help/patience!