0
How do I create a javascript page that contains a button that, when I click, it accesses, via ajax, the contents of a txt file that is saved in the same folder as the page in question, and also displays its data inside a div with id = "data".
Thank you.
Welcome to Stackoverflow in Portugal, you might want to make a Tour: https://answall.com/tour or Have a look at Help Center: https://answall.com/help and check how to ask a good question to be answered. You should post what you have tried and also the code you are using. Hardly anyone will do the job for you.
– Laércio Lopes