# Easy question on reload location?

**URL:** <https://forum.kirupa.com/t/easy-question-on-reload-location/291280>\
**Category:** web dev\
**Created:** [June 27, 2009, 4:31am UTC](https://forum.kirupa.com/t/easy-question-on-reload-location/291280 "2009-06-27T04:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frostBite](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@frostBite](https://forum.kirupa.com/u/frostBite)\
**Post date:** [June 27, 2009, 4:31am UTC](https://forum.kirupa.com/t/easy-question-on-reload-location/291280/1 "2009-06-27T04:31:47Z")

</div>

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,  
-frostBite
