...

View Full Version : button



daemon
07-02-2004, 05:37 PM
Strength [ <a href="javascript:stats.inc('strength')">+</a> ]

how do I write a button to work like this javascript?

I tried to write it like this:


<FORM METHOD="LINK" ACTION="javascript:stats.inc('strength')">
<INPUT TYPE="submit" VALUE="+">
</FORM>

but it doesnt work,, why?

Willy Duitt
07-02-2004, 05:46 PM
Strength [ <a href="javascript:stats.inc('strength')">+</a> ]

how do I write a button to work like this javascript?

I tried to write it like this:


<FORM METHOD="LINK" ACTION="javascript:stats.inc('strength')">
<INPUT TYPE="submit" VALUE="+">
</FORM>

but it doesnt work,, why?

You did not like this? : <a href="javascript:stats.inc('strength')">+</a>

For your button use type=button

IE: <INPUT TYPE="button" VALUE="+" onclick="stats.inc('strength')">

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum