new date

by amir_ch

HTML

<a href="#" id="link" onclick="showDate()">Show Date</a>

JavaScript

function showDate(){
       alert(new Date());
}