When you type a character in the input field below, an
XMLHttpRequest is sent to the server, and some name suggestions
are returned (from the server):
https://www.w3schools.com/php/gethint.php?q=... on the server to get a suggestion.
The DOM is then used update the page with the retrieved suggestion. To be precise, the element labelled as textHint on the webpage is updated.