Javascript question
Javascript question
- Started
- Last post
- 21 Responses
- Krassy0
<div id="adiv" style="font:24px bold; display: none">Now you see me</div>
- CygnusZero4
How do I take the show/hide code below and change it so that "Now you see me" is hidden by default?
<a href="javascript:hideshow(document.getElementById('adiv'))">Click here</a>
<script type="text/javascript">
function hideshow(which){
if (!document.getElementById)
return
if (which.style.display=="block")
which.style.display="none"
else
which.style.display="block"
}
</script><div id="adiv" style="font:24px bold; display: block">Now you see me</div>