Jordan's Javascript Page

This site requires your browser to support Javascript.

Welcome to my Javascript page! This has only been around for a little while, so there isn't
much here yet. Your browser needs to support at least Javascript 1.0 for most of it, but some
parts need your browser to support Javascript 1.2. Click here
to see what your browser supports.

Submit Scripts: Submit your Javascript code here, if you have a webpage about Javascript you can submit the URL too

Useful functions: Also known as snippets, these functions can be useful in many Javascript programs

Scripts that require your browser to support only minimal Javascript (NN2 or higher) have a
beside them.
beside them. Scripts that use Javascript 1.1 (NN3, IE4 or higher) are shown with a
.
A few of the scripts utilize Javascript 1.2, which was released with Netscape Communicator 4,
and have a beside them.

These two guessing games were my first games in Javascript that I made.A guessing game where the computer picks a number and you try to guess itAnother guessing game where you pick a number and the computer tries to guess it
Click here to view them both at the same time with frames

DateFormat

DateFormat is a set of JavaScript functions that allow you to "feed" DateFormat
a format code and a date object (such as new Date() for the current date or
document.lastModified for the current pages last modified date). DateFormat
then parses the format code with the date object and returns a string representing the date in
the format that was specified. DateFormat is complex enough that it has its own page,
right here.

Random number between

This function returns a random number between two specified numbers, either with zillions of
decimal places, or rounded to a whole number.