Anusha
03-18-2004, 02:17 AM
Hi,
As of given code
<canvas width="500" height="80">
<class name="SpecialButton" extends="button" onclick="changeLabel()">
<method name="changeLabel">
this.setAttribute('label', 'Clicked! ');
</method>
</class>
<SpecialButton>Not clicked</SpecialButton>
</canvas>
on click,the label of button should get changed to "Clicked" but that's not happening.It's not getting changed to clicked, it remains the same..can anybody give me the solution/explanation plz????.
Thanks in advance
Regards
Anush
As of given code
<canvas width="500" height="80">
<class name="SpecialButton" extends="button" onclick="changeLabel()">
<method name="changeLabel">
this.setAttribute('label', 'Clicked! ');
</method>
</class>
<SpecialButton>Not clicked</SpecialButton>
</canvas>
on click,the label of button should get changed to "Clicked" but that's not happening.It's not getting changed to clicked, it remains the same..can anybody give me the solution/explanation plz????.
Thanks in advance
Regards
Anush