We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbfcc8c commit b65197fCopy full SHA for b65197f
index.html
@@ -0,0 +1,19 @@
1
+<!DOCTYPE html>
2
+<html>
3
+ <body>
4
+ <button id="device-button">Check My Device</button>
5
+ <p id="device-status"></p>
6
+
7
+ <script>
8
+ // Get the button and status element
9
+ const button = document.getElementById("device-button");
10
+ const status = document.getElementById("device-status");
11
12
+ // Add an event listener to the button
13
+ button.addEventListener("click", () => {
14
+ // When the button is clicked, change the text of the status element
15
+ status.textContent = "Your Device is On";
16
+ });
17
+ </script>
18
+ </body>
19
+</html>
0 commit comments