home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 June / june_2000.iso / Site Building / ActiveEditor / active.CAB / date.js < prev    next >
Encoding:
Text File  |  2000-03-16  |  306 b   |  20 lines

  1. <!--example of an onclick event to show the date-->
  2.  
  3. <script language="javascript">
  4. <!--
  5.  
  6. function example()
  7. {
  8.  
  9. dattoday = new date();
  10.  
  11. document.write(dattoday.tolocalestring());
  12.  
  13.  
  14. }
  15. //-->
  16. </script>
  17.  
  18.  
  19.  
  20. <a href="http://www.yahoo.com" onclick="example();">go to yahoo and show the date</a>