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