Skip to content

Commit dcc3d86

Browse files
committed
fix: basic event handling
1 parent dbbafb2 commit dcc3d86

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Basic Event Handling</title>
8+
<script>
9+
function render_current_time() {
10+
document.getElementById("time").textContent = new Date().getTime()
11+
}
12+
</script>
13+
</head>
14+
15+
<body onload="render_current_time()">
16+
<div id="time"></div>
17+
</body>
18+
19+
</html>

0 commit comments

Comments
 (0)