I'm trying to get the ID of the button I clicked but I can't do it. I tried everything but it doesn't work.
How can I do this?
I'm trying to get the ID of the button I clicked but I can't do it. I tried everything but it doesn't work.
How can I do this?
This works on an ordinary webpage:
But it's better to use event listeners:
That second method also works with Windows 8.1 apps.