The cheese way around that is two identical pages: one with the button/anchor/submit, one without. The old page will still be in their browser history though.
Another trick that wouldn't work entirely cross browser is, if it's an anchor, something like
sneeeeeky. This'll stay with them until they clear browser history, which might be the moment they close the browser. If you're worried about actual accidental double clicks rather than multiple submissions, this could solve that.
If your problem is really a slow server where people click multiple times because they don't get the feedback that the first action worked, then you know honestly you need to fix the feedback issue rather than mess with the button One possibility is a hidden bit of text underneath the button, and similar technique:
<a id="special" href="tehbutton">St Elsewhere</a>
<p>Yr sbmssn iz being processed, yo. kthxbye</p>
This topic is now closed. New replies are no longer allowed.