I have this on my css style:
Then, I have this javascript code:
What I want to do, is to make the #container visible on page load.
But as I'm a newbie on css and javascript, I don't know what to put on style.display=" ???"; to make it visible.
I only know that if I put style.display=" none"; it will not display #container.
What do I put to make it display?
Thanks to anyone who can help me.
Code:
<style type="text/css">
#container
{visibility:hidden;
width: 1000px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
</style>
Code:
<script type="text/javascript">
window.onload=function(){
document.getElementById("container").style.display="???";
}
</script>
But as I'm a newbie on css and javascript, I don't know what to put on style.display=" ???"; to make it visible.
I only know that if I put style.display=" none"; it will not display #container.
What do I put to make it display?
Thanks to anyone who can help me.
Comment