I am building a interstitial page, using
Everything is working, but I also would like to close the div\'s aft
onclick = "setTimeout(function() { document.getElementById('div1').style.display='none';document.getElementById('div2').style.display='none'}, 1000)"
Change 1000 to the number of milliseconds you want to delay.