Nige a ecrit :
[color=blue]
> In comp.lang.javascript, Nige wrote:
>[color=green][color=darkred]
> >>Is it possible to create an alert box when a radio button is selected? I
> >>have a group of three, and I want a different alert for each one.[/color]
> ><input type="radio" name="sign" value="planningtosign" onClick=alert('ABC')>[/color]
>
> I spoke too soon.
>
> It works providing there are no spaces in the string argument - help![/color]
if you do only 'onclick="do that"'
each time you click the radio you do that and no importance if it is secelcted
so ...
<input type=radio onclick="if(this.checked==true) alert('I am selected')
else alert('I am not selected');">
--
************************************************** ************
Stéphane MORIAUX : mailto:stephaneOTER-MOImoriaux@wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephanePOINTmoriaux/internet/
************************************************** ************