<head>
<title>Time</title>
</head>
<body>
<div?id="time"></div>
<div?id="alert"></div>
</body>
<script?type="text/javascript"?charset="utf-8"?async?defer>
var?time?=?document.getElementById("time");
showTime();
function?showTime()?{
//?To?get?the?date?time
var?date?=?new?Date();
var?year?=?date.getYear()?+?1900;
var?month?=?date.getMonth()?+?1;
var?day?=?date.getDate();
var?hour?=?date.getHours();
var?min?=?date.getMinutes();
var?sec?=?date.getSeconds();
var?date_time?=?year?+?"-"?+?month?+?"-"?+?day?+?"?"?+?hour?+?":"?+?min?+?":"?+?sec;
time.innerHTML?=?date_time;
//?when?the?time?is?equal?your?condition,?show?the?special?words.
if(date_time?==?"2014-6-25?11:45:20")?{
document.getElementById("alert").innerHTML?=?"It's?time?to?display?your?words?here.";
}
}
//?set?the?interval?time
setInterval(showTime,?1000);
</script>
</html>