JavaScript Reference/Javascript Methods/setMilliseconds

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

"setMilliseconds()" Example

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



"setMilliseconds()" is applied to

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



"setMilliseconds()" Syntax, Parameters and Note

Note:
Sets the milliseconds elapsed during the current second.
    
Syntax:
    
dateName.setMilliseconds(param1)
Parameters:
    param1   Optional; the milliseconds. Value: 0 to 999.