Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<p>Click the button to see the current date.</p>
<button onclick="getElementById('demo').innerHTML=Date()">What day is today?</button>
<p id="demo"></p>
</body>
</html>