summaryrefslogtreecommitdiff
path: root/html/inner.html
blob: 7d123191704f7781419038fe6e457056d11272e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>