Simple page for Javascript Demo

This text was created by HTML.


<script language="JavaScript">
var x;

x = parseInt(window.prompt("Enter a number","-1"));

if ( x < 0 ) 
     document.write( x + " is a negative number<br>"); 
else { 
     if ( x == 0 ) 
           document.write( x + " is zero<br>"); 
     else 
           document.write( x + " is a positive number<br>"); 
     } 
</script>