I want a division to be made visible three seconds after the page loads but nothing seems to be happening. Am I using the right code?
I'd rather not have to use a function if I can avoid it.
Thanks for any help.
I'd rather not have to use a function if I can avoid it.
Code:
<body onload="setTimeout(document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block', 3000)">
Comment