summaryrefslogtreecommitdiff
path: root/html/inner.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/inner.html')
-rw-r--r--html/inner.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/html/inner.html b/html/inner.html
new file mode 100644
index 0000000..7d12319
--- /dev/null
+++ b/html/inner.html
@@ -0,0 +1,14 @@
+<html><head><title>Inner</title>
+
+ <style>
+ h1 { visibility: hidden; }
+ div#magic > h1 { visibility: visible; }
+ </style>
+ </head>
+ <body>
+ <div id="magic"></div>
+ </body>
+ <script>
+ document.getElementById("magic").innerHTML = "<h1>innerHTML worked</h1>";
+ </script>
+</html>