mitya
10-01-2003, 06:14 PM
Hi all
I have a call to a javascript inside a <span> tag, which, if the user clicks 'yes', I want the text to change colour. Please be quite specific if you can help as I'm no JS coder (just PHP/AS).
I know how to change properties on events etc, but what I want to know is how can I tell the text in the span to change colour only if yes is clicked in the confirm box?
To summarise:
1) Span tag, with text inside which, when clicked, calls confirm script
2) On confirm = yes, change script colour. If no, do nothing.
Thanks in advance- I hope this is possible.
I have a call to a javascript inside a <span> tag, which, if the user clicks 'yes', I want the text to change colour. Please be quite specific if you can help as I'm no JS coder (just PHP/AS).
I know how to change properties on events etc, but what I want to know is how can I tell the text in the span to change colour only if yes is clicked in the confirm box?
To summarise:
1) Span tag, with text inside which, when clicked, calls confirm script
2) On confirm = yes, change script colour. If no, do nothing.
Thanks in advance- I hope this is possible.