JavaScript

Javascript code posted by Pandu
created at 15 Nov 00:03, updated at 15 Nov 00:11

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<body>

<h2>Example JavaScript</h2>

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

<p id="demo"></p>

</body>
</html> 
236 Bytes in 2 ms with coderay