|
Here is an example of the DISPLAY style property, and the visibility property
The display property makes an element invisible and allows the browser to reclaim the space that it occupied, the visibility property can be used to simply make an element disappear, but still reserve its space in the document
How do I use the display style property?
By calling an event handler function on the onclick event of the question above, this content and the space it occupies can be shown or hidden. The event handler simply sets this element's DISPLAY property.
Can I do this for images as well?
Click the Button to change the visibility of a DIV object
By calling a function to handle the onclick event of the button above, this content can be shown or hidden, but the space it occupies remains. The button's event handler simply sets this element's visibility property.
Can I do this for images as well?
|