Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

display time and date in javascript

<!DOCTYPE html>
<html>
<body>

<button type="button"
onclick="document.getElementById('display').innerHTML = Date()">
Click me to display Date and Time.</button>

<p id="display"></p>

</body>
</html>
Source by phoenixnap.com #
 
PREVIOUS NEXT
Tagged: #display #time #date #javascript
ADD COMMENT
Topic
Name
3+2 =