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