January 2020
Intermediate to advanced
470 pages
11h 13m
English
How can we solve the problem? The first solution may seem like a joke: do nothing, tell the user not to click twice, and hope for the best! Your page might look like Figure 2.1:

This is a way to weasel out of the problem; I've seen several websites that just warn the user about the risks of clicking more than once (see Figure 2.1) and actually do nothing to prevent the situation: The user got billed twice? We warned them... it's their fault!
Your solution might simply look like the following code:
<button id="billButton" ...