JavaScript Reference/Javascript Methods/getSeconds
"getSeconds()" Example
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.getSeconds());">
get seconds
</button>
</body>
</html>
"getSeconds()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"getSeconds()" Syntax, Parameters and Note
Note:
Returns the number of seconds.
Return value: 0 to 59.
Syntax:
dateName.getSeconds()