summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cookiebanners/test/browser/file_banner_b.html
blob: b71faa0ab44972314c87bcae156e8d55d21fff26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head>
  <title>A top-level page with cookie banner</title>
  <script>
    function hideBanner() {
      document.getElementById("banner").style.display = "none";
    }

    function clickOptOut() {
      document.getElementById("result").textContent = "OptOut";
      hideBanner();
    }

    function clickOptIn() {
      document.getElementById("result").textContent = "OptIn";
      hideBanner();
    }
  </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>