'Date' Example : Date : Javascript Objects : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Objects   » [  Date  ]   
 



'Date' Example

    
<html>
<body>
<script language="javascript">
function myFunction(){
    var date = new Date()
    alert(date.toString());
}
</script>
<button onclick="myFunction();">Today's date</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'Date' Syntax and Note
2.  'Date' JavaScript Properties
3.  'Date' JavaScript Methods
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.