I'm new to web design and I'm having trouble getting this code to work properly. Can anyone help me fix it so that both styles are applied correctly?
// Access the sign_up modal window
var modal = document.getElementById('id01');
// Access the container content
var content = document.getElementById('container');
// When the user clicks anywhere outside of the modal, close the modal and remove blur effect on container content
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
content.style.filter = "blur(0)";
}
}