Please fill the form ×
"); //document.body.appendChild(document.getElementById("myModalBrochure")); // document.body.appendChild(document.getElementById("myModalBrochure")); //document.documentElement.insertBefore(document.getElementById("myModalBrochure"), document.body.nextSibling) // Get the modal var myModalBrochure = document.getElementById("myModalBrochure");// Get the button that opens the modal var btn = document.getElementById("myModalBrochure1"); // Get the element that closes the modal var spanmyModalBrochure = document.getElementsByClassName("closemyModalBrochure")[0]; // When the user clicks the button, open the modal btn.onclick = function() {myModalBrochure.style.display = "block";} // When the user clicks on (x), close the modal spanmyModalBrochure.onclick = function() { myModalBrochure.style.display = "none"; } // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == myModalBrochure) { myModalBrochure.style.display = "none"; } }