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

'getTime()' Example

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

    
      
      








Related examples in the same category

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