Answer the question
In order to leave comments, you need to log in
Why doesn't the modal exit work?
let
tdone = document.getElementById('tdone'),
modalone = document.getElementById('modalone'),
tdtwo = document.getElementById('tdtwo'),
modaltwo = document.getElementById('modaltwo');
tdone.onclick = function(){
modalone.style.display= "block";
};
window.onclick = function (e){
if(e.target == modalone) {
modalone.style.display="none";
}
};
tdtwo.onclick = function(){
modaltwo.style.display= "block";
};
window.onclick = function (e){
if(e.target == modaltwo) {
modaltwo.style.display="none";
}
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question