How to have lightbox on page load?
-
07-07-2019 - |
Question
Is there a way to have lightbox on page load?? Say like when the page is loading i need to show the lightbox... and when the page load is complete it should disappear?? Pls help me in this...!!
Solution
Use an absolute positioned div (in CSS) to show the lightbox and:
<body onload="document.getElementById('idofthediv').style.display='none'" ...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow