docs: fix `this` binding in onClick .then handler with arrow fn
Update the `.then()` handler in the `onClick` attribute to use an arrow function instead of a traditional `function(arg)` expression.
This fixes the `this` binding within the lexical scope, ensuring that `this` is bound to the `button` instead of the `window` and resolving the issue.
Fixes/Closes issue #2257