4-H Webdesign Lesson 5

Introduction to Javascript

For example:

<script><!--
document.write( (new Date()));
--></script>
will display the current date and time.
<script> <!--
document.write((new Date() - new Date("January 9, 1990"))/1000/3600/24/365.25);
--></script>
will display your age. and
<script><!--
window.open("http://www.eatonhills4h.org");
--></script>
will create a pop-up window to the eatonhills 4-H website.