11 lines
221 B
HTML
11 lines
221 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
<h2>My First JavaScript</h2>
|
||
|
<button type="button"
|
||
|
onclick="document.getElementById('demo').innerHTML = Date()">
|
||
|
Click me to display Date and Time.</button>
|
||
|
<p id="demo"></p>
|
||
|
</body>
|
||
|
</html>
|