First post here.
The idea is to put counters on when I press the buttons. The First button I press will get 1, the second 2, etc. In the example I'm caught on the counter that is not connected to the button you press:

http://www.aktivitetsportalen.net/test/test.html

An example.
When I press knapp3 first: it should write 1, knapp1: 2, knapp2: 3

I got stuck when I want to connect the counter to the ID on the buttons. Unsure if it is possible? The question is whether it's possible to do with a function and arguments as global counters. Thanks!