Easy question on reload location?

On my site page I’m working on I have this piece of JS code:

<input type=“button” class=“btn” onclick=“window.location.reload()” value=“Random Fact” /

That piece of code reloads the entire site forcing “facts.txt” to reload but really all I need to reload is “facts.txt” anyway to make that JS button only reload “facts.txt”?

Thank you for any help,