Mega Code Archive

 
Categories / JavaScript Tutorial / Date
 

Date() getMilliseconds()

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