Get data via AJAX request

When you click the button, the page will send an HTTP requeset to the server, which will respond with the value of an internal counter.

Next, check out this page.