Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Fajar Sidiq XIRPL2 Kondisi If Jam</title>
- <link rel="stylesheet" type="text/css" href="buatif.css">
- </head>
- <body>
- <p>Akan muncul tulisan "Good Day!" jika waktu kurang dari 18:00</p>
- <p id="demos">Good Evening!</p>
- <script>
- if (new Date().getHours() < 18)
- {
- document.getElementById("demos").innerHTML = "Good Day!";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement