I am doing this off the top of my head right now. Too lazy to open my Notepad++ :P. Also, I haven't done JS in a while. May mess something up :P
<html>
<!--Created by Ryan Ballou 1/27/2012-->
<head>
<h1><center>Welcome to my Number Guesser!</center></h1>
</head>
<body bgcolor = "Grey">
<script type="text/javascript">
var RandomNumber = 0
function Random(){
RandomNumber = Math.floor(Math.random()*101)<!--Rounds down 1-100-->
alert("Guess my number!")
}
function Check(){
if(Fields.Guess.value < RandomNumber){
alert("Too Low!")
}else if(Fields.Guess.value > RandomNumber){
alert("Too High!")
}else if(Fields.Guess.value == RandomNumber){
alert("You Won!")
}
}
</script>
<form name=Fields>
<center>
<input type=button value="Go Again!" onClick="Random()">
<input type="text" name=Guess>Enter your Guess!
<input type=button value="Confirm Guess" onClick="Check()">
</center>
</form>
</body>
</html>
Should work without a problem :P