Date Shown As HREF

[Total: 0    Average: 0/5]

This shows how to have the date put into an href link.

Body Code:

<script>
var months=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var _d = new Date();
MONTH = _d.getMonth();
DATE = _d.getDate();
document.write("<a href="/">");
document.write(months[MONTH]+" "+DATE);
document.write("</a>");
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *