ta********@gmail.com wrote:
Hi.
I would like to create a [+] link next to a caption, and when user
clicks
it, a new text appears and [+] becomes [-].
And when users clicks [-], it becomes [+] and the text dissapears.
I don't remember which JavaScript property I must work with.
Hmmmmm, lets see.
You need the onclick.
You need the visibility property.
That about covers what you want, at a minimum.
You could expand it and use the images collection.
You could also expand it and use innerHTML.
But neither is required. It can be done with onclick and visibility.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq