03-20-2018, 12:27 PM
Do it with JavaScript:
window.onclick = function(event) {
var modal = document.getElementById("modalName");
if (event.target == modal) {
modal.style.display = "none";
}
}
window.onclick = function(event) {
var modal = document.getElementById("modalName");
if (event.target == modal) {
modal.style.display = "none";
}
}