'Date' Example : Date : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » Date »

 

'Date' Example



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

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» Date