Hi,
I have a question about Creating Modal Windows example... Quote:
If I remove the following lines (altogether, all three lines):
In function openModal(): document.getElementById('openModal').onclick = null;
In function closeModal(): document.getElementById('openModal').onclick = openModal;
In function closeModal(): document.getElementById('closeModal').onclick = null;
so that the new code looks like this:
everything works well, there are no errors. I don't understand why there are these three lines?
Thank you in advance!