The getUTCMilliseconds() method returns the millisecond portion of the date converted to universal time and expressed as an integer from 0 to 999.
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- dateVar = new Date(); alert(dateVar.getUTCMilliseconds()); // --> </script> </head> <body> </body> </html>