JavaScript Reference/Javascript Methods/setSeconds — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"setSeconds()" Example
<source lang="javascript">
<html> <body> <button onclick="var myDate = new Date(); myDate.setSeconds(20); alert(myDate);">SETSECONDS</button> </body> </html>
</source>
"setSeconds()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+
</source>
"setSeconds()" Syntax, Parameters and Note
<source lang="javascript">
Note: Sets the seconds.
Syntax:
dateName.setSeconds(param1, param2) Parameters:
param1 Required; the seconds. Value: 0 to 59. param2 Optional; the milliseconds elapsed in the current second. Value: 0 to 999. </source>