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