|
-
Feb 18th, 2002, 05:24 AM
#1
Thread Starter
Fanatic Member
Hiding html objects
Hi,
How can I hide things like a button? I want to hide a button when it is clicked.
-
Feb 18th, 2002, 01:59 PM
#2
Code:
<input type="button" value="Click Me" onClick="this.style.visibility='hidden'"/>
That should do it.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 19th, 2002, 12:47 AM
#3
Thread Starter
Fanatic Member
Do you have a link that has a reference to all the html objects and their properties methods and events.
-
Feb 19th, 2002, 03:34 PM
#4
Member
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
-
Feb 20th, 2002, 01:13 AM
#5
Thread Starter
Fanatic Member
Thanks,
How what does div do?
-
Feb 20th, 2002, 01:06 PM
#6
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|