»
EnglishFrenchVietnamese

Print - Title date Script - JavaScriptBank.com

Full version: jsB@nk » Time » Clock » Title date Script
URL: https://www.javascriptbank.com/title-date-script.html

Title date Script © JavaScriptBank.comThis is a simple yet useful DHTML script that displays the current date as the title of the document. It utilizes the exclusive document.title property of IE 4/NS6 to accomplish this, therefore, is only visible to IE 4/NS6 browsers.

Full version: jsB@nk » Time » Clock » Title date Script
URL: https://www.javascriptbank.com/title-date-script.html



JavaScript
<script language="JavaScript1.2"><!--hide//date in title by Randall Smith copyright 1999//please visit me on the web at http://members.xoom.com/u4rstunzd///and to change the title:where it says Welcome todays date is: just put var isnMonth = newArray("January","February","March","April","May","June","July","August","Septerber","October","November","December");var isnDay = newArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");today = new Date () ;Year=today.getYear();if (Year < 1000)Year+=1900Date=today.getDate();function setdate(){document.title="Today: "+isnDay[today.getDay()]+", "+isnMonth[today.getMonth()]+" "+Date+", "+Year+""}if (document.all)setdate()else if (document.getElementById)window.onload=setdate//--hide--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->