Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to change styles on onload= Re: How to change styles on onload=

#87190
jamygolden
Moderator
onload="javascript:document.getElementById('loader').style.visibility='hidden';document.getElementById('loader').style.opacity='0';"

That should work.

It would be better not to mix HTML with javascript like that though. Try this instead: