<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getTime());"> Date: get Time </button> </body> </html>