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

'valueOf()' Example

    
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.valueOf());">
value of my date
</button>
</body>
</html>

    
      
      








Related examples in the same category

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