summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cookiebanners/test/browser/file_banner.html
blob: 145a21413e8fb67c8f1e597e8dbbe654acf42980 (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="banner">
    <button id="optOut" onclick="clickOptOut()">OptOut</button>
    <button id="optIn" onclick="clickOptIn()">OptIn</button>
  </div>
  <p id="result">NoClick</p>
</body>
</html>