Skip to content

Instantly share code, notes, and snippets.

@Nebelung-Dev
Created August 19, 2022 18:26
Show Gist options
  • Save Nebelung-Dev/5ce027a3f113c019b786c5af67f0fc82 to your computer and use it in GitHub Desktop.
Save Nebelung-Dev/5ce027a3f113c019b786c5af67f0fc82 to your computer and use it in GitHub Desktop.
<button onclick="openTab()">Open</button>
<div id="popup">
<p>anything in here is in the popup</p>
</div>
<script>
function openTab() {
var popup = document.getElementById("popup")
popup.classList.toggle("open")
}
</script>
<style>
#popup {
display: none;
}
.open {
display: initial !important;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment