Automatic modification date

Using Dreamweaver

If you are using Dreamweaver, adding an automated modification date is very simple. The date change occurs within Dreamweaver and does not work if you are using other web editing programs.

  1. Type a line of text to later include the date. Change "Department Web Developer" to the name of your department and make it a mailto link:

    Last modified by Department Web Developer
     
  2. Insert your cursor after "by", then go to the INSERT menu item and select DATE.
  3. Choose the format you want to use and check UPDATE AUTOMATICALLY ON SAVE. Click OK and the date will be inserted where your cursor was positioned.


Javascript Code

Example:
Last updated by Department Web Developer.

Cut and paste the code in between the lines below. Be aware that you may not be able to see the date while working on the document but it will display once it is uploaded to the server if using modern browsers. Be sure to replace department with the correct e-mail address and name.


Last updated <script type="text/javascript">
<!--
document.write(document.lastModified);
//--></script> by <a href="mailto: department@uaf.edu">Department Web Developer.</a>


Close window