1
0
Fork 0
firefox/toolkit/components/cookiebanners/test/browser/file_banner_b.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
679 B
HTML

<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>