Source code

Revision control

Copy as Markdown

Other Tools

<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="banner" style="display: none;">
<button id="optOut" onclick="clickOptOut()">OptOut</button>
<button id="optIn" onclick="clickOptIn()">OptIn</button>
</div>
<p id="result">NoClick</p>
</body>
</html>