Wade007
2008-05-09 14:13:55
Well, here is the code
<html>
<head>
<title>Welcome to my chat room, made in javascript!</title>
</head>
<body>
<script type="text/javascript">
var username=prompt("Type what you want to be called in the chat room");
var times=10;
do
{
var text = prompt("Type what you want to say here.");
document.write(username+ " " + text);
}
while(times=10);
</script>
</body>
</html>I made this super fast, and i just started learning some javascript today, so don't expect anything much. Could anyone give me some tips on how to make each comment a different line? and how to exit the endless loop. Thanks in advance!