JavaScript Reference/Javascript Methods/getMilliseconds

Материал из Web эксперт
Перейти к: навигация, поиск

"getMilliseconds()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="var myDate = new Date();

                alert(myDate.getMilliseconds());">

get milliseconds </button> </body> </html>


     </source>
   
  


"getMilliseconds()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+

     </source>
   
  


"getMilliseconds()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Returns the number of milliseconds elapsed during its current second. Return value: 0 to 999.

Syntax:

dateName.getMilliseconds()


     </source>