I am goofing around with some dhtml in which I have several layers, one which contains an image. When the image is clicked, I would like the "main" div which contains the contents to be hidden from view. Very similar to the way a windows' window works.
<div class=box id=box> <div class=menu id=menu> <a href=# "onClick=closeObject('box'); return false;"><img src=buttons.gif border=0 height=14></a> </div> <div class=body id=body> In this week's "Wally report," I've decided to let my hair grow long in the back. </div> </div>
</body> </html>
I don't receive any errors when I run the script, but the div is not hidden from view!?