home *** CD-ROM | disk | FTP | other *** search
- <!--example of an onclick event to show the date-->
-
- <script language="javascript">
- <!--
-
- function example()
- {
-
- dattoday = new date();
-
- document.write(dattoday.tolocalestring());
-
-
- }
- //-->
- </script>
-
-
-
- <a href="http://www.yahoo.com" onclick="example();">go to yahoo and show the date</a>