# How to make the page self refresh once when the page is loaded

**URL:** <https://forum.kirupa.com/t/how-to-make-the-page-self-refresh-once-when-the-page-is-loaded/93735>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 10:06am UTC](https://forum.kirupa.com/t/how-to-make-the-page-self-refresh-once-when-the-page-is-loaded/93735 "2003-11-04T10:06:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBUH](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@SBUH](https://forum.kirupa.com/u/SBUH)\
**Post date:** [November 4, 2003, 10:06am UTC](https://forum.kirupa.com/t/how-to-make-the-page-self-refresh-once-when-the-page-is-loaded/93735/1 "2003-11-04T10:06:49Z")

</div>

Hello, friends. I wonder how to make the page self refresh when it is loaded.

I have code like  
\<body onload=“self.location=self.location”\>

Then it start to refresh on and on when the page is loaded.  
How should I code so that it only refresh once when the page is loaded?

Thanks very much in advance!Regards!
