how to inject javascript into html

Solutions on MaxInterview for how to inject javascript into html by the best coders in the world

showing results for - "how to inject javascript into html"
Sofie
17 Jul 2019
1<!DOCTYPE html>
2<html lang="en-US">
3
4<head>
5    <meta charset="UTF-8">
6    <meta name="viewport" content="width=device-width, initial-scale=1">
7    <title>Today's Date</title>
8    <script>
9        let d = new Date();
10        alert("Today's date is " + d);
11    </script>
12</head>
13
14<body>
15
16</body>
17
18
19
20</html>