Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to close modal window when clicking on the background form
#2
Do it with JavaScript:

window.onclick = function(event) {
var modal = document.getElementById("modalName");
if (event.target == modal) {
modal.style.display = "none";
}
}
Reply


Messages In This Thread
RE: How to close modal window when clicking on the background form - by Fabio Brabo - 03-20-2018, 12:27 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)