Code: Select all
<script type="text/javascript">
function togglePopup(box){
var popupBox = document.getElementById(box);
if(popupBox.style.display == "block"){
popupBox.style.display = "none";
} else {
popupBox.style.display = "block";
}
}
</script>
<div class="popupBox" id="popbox1">
</script> <div class="boxbody">
<div class="boxheader">
Where I put the header of the box
</div>
Then here is the link that they click on to open the box:
Code: Select all
<li><a target="_parent" onmousedown="togglePopup('popbox1')">Store</a>
I just need a button or link there that users can click on to close the window.