Hi,
How can I hide things like a button? I want to hide a button when it is clicked.
Printable View
Hi,
How can I hide things like a button? I want to hide a button when it is clicked.
That should do it.Code:<input type="button" value="Click Me" onClick="this.style.visibility='hidden'"/>
:)
Do you have a link that has a reference to all the html objects and their properties methods and events.
Hi shunt,
The solution crptcblade gave you will work only for IE browsers. If you want a crossBrowser solution, you need to place the objects in a div/layer and then toggle that element's visibility. If you want a crossBrowser link, see the "dHTML: an Introduction" script/tutorial at my site.
Vinny
Thanks,
How what does div do?
Hi shunt,
Did you read the introductory script/tutorial at my site? A div/layer in an object that most new browsers allow you to use to hide/display/change elements on a page.
Vinny