Here are the files involved:
ajaxtest.js
my-page-custom-js.js
message.txt
Click on the link below to get the contents of a text file
(on the server) via an Ajax request.
Make ajax request
Notice that the url address shown in your web browser does not change.
This is a key concept of Ajax.