<script>
function close(){
window.open('alert_update.php?id=<? echo"$alertm[id]"; ?>','alert');
document.getElementById("alert").style.display="none";
}
</script>
The above script is what I am using to send a request as such to alert_update (the file that updates the database which is a small iframe 1px by 1px; but I also need it to onclick hide the div that is showing the alert (as well as holding the iframe) although for some reason it wont do either and so im not sure if its something to do with my code, I'm not great at javascript.
My code to execute the function is:
<a href="#" onClick='close()'>Okay</a>