'getSeconds()' Example : getSeconds « Javascript Methods « JavaScript Reference

'getSeconds()' Example

    
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.getSeconds());">
get seconds
</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'getSeconds()' Syntax, Parameters and Note
2.'getSeconds()' is applied to