Click to See Complete Forum and Search --> : hide button


Bryan Tuffin
01-08-2003, 04:44 AM
What do I have to add to a button so that it is hidden when I open the page. And what javascript code do I need to make it visible again.

evimav
01-08-2003, 05:08 AM
In order to have an invisible button you can write the following statement: <input id=testi style="visibility:hidden">
Then, you can make it visible by writing the javascript statement (in IE): document.all.testi.style.visibility="visible";

AdamGundry
01-08-2003, 10:33 AM
Alternately, if you want a button that takes up no space (invisible elements still fill page space), use these:

<input id=testi style="display: none">
document.all.testi.style.display="inline";

The property you use depends on what effect you want to create.

Adam