PDA

View Full Version : event handlers


Kevin
01-26-2003, 12:54 AM
I need to set a global variable to true or false depending on the button choosen.

Is this how it is done. Or is there another method?

<INPUT onclick=manual=1 type=button value=" manual ">



<INPUT onclick=manual=0 type=button value=" auto ">

I've never seen a value passed in this fashion before.

insight always appreciated

Thank You
Kevin
:)

joh6nn
01-26-2003, 02:52 AM
<script>
var manual;
</script>

<INPUT onclick="manual=1" type=button value=" manual ">
<INPUT onclick="manual=0" type=button value=" auto ">