S
Steve Easton
How can I stop a function and then restart
it when a global variable used by the function is changed.
myfunction() works fine, but I end up
with two instances of it running when I only want one,
it is invoked using onClick =aa()
and another onClick=bb()
obtw this used in an hta but it shouldn't make
any difference.
Example:
<script>
myfunction(){
do this;
}
rate = 20000;
function aa(){
rate = 10000;
myfunction()
}
function bb(){
rate= 15000;
myfunction()
}
</script>
Thanks
Steve
it when a global variable used by the function is changed.
myfunction() works fine, but I end up
with two instances of it running when I only want one,
it is invoked using onClick =aa()
and another onClick=bb()
obtw this used in an hta but it shouldn't make
any difference.
Example:
<script>
myfunction(){
do this;
}
rate = 20000;
function aa(){
rate = 10000;
myfunction()
}
function bb(){
rate= 15000;
myfunction()
}
</script>
Thanks
Steve