summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cookiebanners/test/browser/file_banner_b.html
blob: bf8df76bd3dc5479a8d1613de1e49abe4eeb357f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
  <title>A top-level page with cookie banner</title>
  <script>
    function clickOptOut() {
      document.getElementById("result").textContent = "OptOut";
    }

    function clickOptIn() {
      document.getElementById("result").textContent = "OptIn";
    }
  </script>
</head>
<body>
  <h1>This is the top-level page</h1>
  <div id="bannerB">
    <button id="optOut" onclick="clickOptOut()">OptOut</button>
    <button id="optIn" onclick="clickOptIn()">OptIn</button>
  </div>
  <p id="result">NoClick</p>
</body>
</html>