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>
 
PREVIOUS NEXT
Tagged: #display #time #date #javascript
ADD COMMENT
Topic
Name
4+3 =