L
lee
Hello
I need to hide a layer after a set time when the page loads.
Let's say a 1000ms (a second).
Now this works as you'd expect:
<body onLoad="PopUp.style.visibility='hidden';">
Which closes the layer so quick the user cannot see it.
I need it to close after 1 second. I'd thought this would work, but it
does not:
<onLoad="setTimeout('PopUp.style.visibility='hidden';', 1000);">
Does anyone know how to hide the layer after a set time?
Thanks
I need to hide a layer after a set time when the page loads.
Let's say a 1000ms (a second).
Now this works as you'd expect:
<body onLoad="PopUp.style.visibility='hidden';">
Which closes the layer so quick the user cannot see it.
I need it to close after 1 second. I'd thought this would work, but it
does not:
<onLoad="setTimeout('PopUp.style.visibility='hidden';', 1000);">
Does anyone know how to hide the layer after a set time?
Thanks