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