W3Schools Tryit Editor js auslösen

PHOTO EMBED

Sun Oct 02 2022 04:06:36 GMT+0000 (UTC)

Saved by @dbmmf #undefined

<!DOCTYPE html>
<html>
<body>
​
<h1>My First JavaScript</h1>
​
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>
​
<p id="demo"></p>
​
</body>
</html> 
​
​
content_copyCOPY

https://www.w3schools.com/html/tryit.asp?filename