# Reloading an image (woops)

**URL:** <https://forum.kirupa.com/t/reloading-an-image-woops/22145>\
**Category:** Uncategorized\
**Created:** [May 30, 2003, 9:58pm UTC](https://forum.kirupa.com/t/reloading-an-image-woops/22145 "2003-05-30T21:58:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![solid](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@solid](https://forum.kirupa.com/u/solid)\
**Post date:** [May 30, 2003, 9:58pm UTC](https://forum.kirupa.com/t/reloading-an-image-woops/22145/1 "2003-05-30T21:58:29Z")

</div>

I just replied to the post “reloading an image” and pasted the refresh javascript that I use, but I messed that topic up.

sorry about that!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 10:03pm UTC](https://forum.kirupa.com/t/reloading-an-image-woops/22145/2 "2003-05-30T22:03:17Z")

</div>

Here was my answer to the other “reloading an image” topic.

```auto

var sURL = unescape(window.location.pathname);
function doLoad() {
      setTimeout( "refresh()", 15000);
}

function refresh() {
    window.location.href = sURL;
}

```

Then put

```auto
onLoad="doLoad();"

```

in your BODY tag.
