Subject Re: [firebird-php] Duplicate numbers
Author Milan Babuskov
Lester Caine wrote:
>><input type=submit value=Go onClick="return check();">
>>
>><script>
>>function check()
>>{
>> if (document.form.clicked.value == 1)
>> {
>> alert('You already clicked. Please wait.');
>> return false;
>> }
>> document.form.clicked.value = 1;
>> return true;
>>}
>></script>
>
>
> Except the problem is
>
> <a class="button" accesskey="A" href="ticketaddserve.php?enqno=0">Add
> Ticket</a>

AFAIK, you can use onClick with <A> as well. Just return false from handler it
you don't want it to work.

BTW, I usually use <button> tag for such stuff:

<button accesskey="A" type=submit onClick=...><U>A</U>dd Ticket</button>


--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org