# How to reload a frame if you're already on it?

**URL:** <https://forum.kirupa.com/t/how-to-reload-a-frame-if-youre-already-on-it/308368>\
**Category:** flash\
**Created:** [April 21, 2010, 5:46pm UTC](https://forum.kirupa.com/t/how-to-reload-a-frame-if-youre-already-on-it/308368 "2010-04-21T17:46:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAEC\_KV](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@SAEC\_KV](https://forum.kirupa.com/u/SAEC_KV)\
**Post date:** [April 21, 2010, 5:46pm UTC](https://forum.kirupa.com/t/how-to-reload-a-frame-if-youre-already-on-it/308368/1 "2010-04-21T17:46:42Z")

</div>

I’m trying to mimick a website style design in my interactive. Let’s say I have 5 frames and each frame is a separate web page. When I click a nav button, it’ll take me to page 5. On page 5 is a movieclip wherein XX happens. At some point I want to be able to reload the entire page 5, while still on page 5. I cant do a gotoAndStop(5) command because nothing happens - it’s already there. Is there a somewhat simple/elegant way to do this?

Since I don’t have a lot of pages, the only thing I could come up with was to create a conditional and a dummy frame, so something like this:

```auto

function pageFive(){
     gotoAndStop(5);
     if(currentFrame == 5){
          gotoAndStop(10);
          }
     }

```

Then frame 10 would be a dummy frame that looks just like the “landing area” of frame 5, but the only code on frame 10 would be “gotoAndStop(5);”

This would reload frame 5 if you’re already on frame 5, but I’m wondering if there’s a simpler way?

TIA!
