Set Milliseconds
<html> <body> <button onclick="var myDate = new Date(); myDate.setMilliseconds(845); alert(myDate);"> Date: set Milliseconds </button> </body> </html>