That's Javascript, not Java.

This should go under Web Development.