# Refresh / Reset page

**URL:** <https://forums.fusetools.com/t/refresh-reset-page/6134>\
**Category:** General\
**Created:** [August 2, 2017, 8:12am UTC](https://forums.fusetools.com/t/refresh-reset-page/6134 "2017-08-02T08:12:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://forums.fusetools.com/u/Jason)\
**Post date:** [August 2, 2017, 8:12am UTC](https://forums.fusetools.com/t/refresh-reset-page/6134/1 "2017-08-02T08:12:53Z")

</div>

Hi I am only new to this stuff, I am having some trouble with a webview… When I navigate to the page with a webview the last viewed webpage still shows. Is there any way to reset it on open so it always shows the initial webpage upon navigation?

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [August 2, 2017, 11:09am UTC](https://forums.fusetools.com/t/refresh-reset-page/6134/2 "2017-08-02T11:09:52Z")

</div>

Hi Jason,

please include some code to show what you’ve tried so far, and to better illustrate the challenge you’re facing.

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://forums.fusetools.com/u/Jason)\
**Post date:** [August 2, 2017, 1:18pm UTC](https://forums.fusetools.com/t/refresh-reset-page/6134/3 "2017-08-02T13:18:32Z")

</div>

Hi Uldis.

I use the following function to navigate to the page with a webview

```auto
   function fb_timeline_go(arg) {
        var subCat = arg.data;
        router.push("fb_timeline", subCat);
    }

```

The following is the page with the webview…

```auto
<NativeViewHost Width="100%" ux:Class="fb_timeline">
	<Router ux:Dependency="router" />
	<WebView Width="100%" Margin="0,56,0,0">
		<HTML>
			<![CDATA[<html><head><meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body><a href="google.com">Google</a></body></html>]]>
		</HTML>
	</WebView>
</NativeViewHost>

```

The webview contains a link to Google. If I click that link it will go to Google. One issue I have is when I press the back button instead of navigating back a webpage it navigates back an app page instead… and then when I navigate forward to the webview again it continues to display Google… I’m hoping for it to show the initial link again.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [August 2, 2017, 4:58pm UTC](https://forums.fusetools.com/t/refresh-reset-page/6134/4 "2017-08-02T16:58:01Z")

</div>

Okay, so there are two questions. The first one is about resetting a page after you’ve navigated away from it. This was recently answered [in another forum thread](https://www.fusetools.com/community/forums/general/clear_forward_history_using_router?page=1&highlight=c12e45a8-e67d-4cf5-aae9-ef91d2e38ac0#post-c12e45a8-e67d-4cf5-aae9-ef91d2e38ac0). Be aware that using `Reuse="None"` may cause performance issues, since pages in a given `Navigator` wouldn’t be reused; prefer setting it on a single page, if absolutely necessary.

The other question is about navigating within a `WebView` on Android back button. For this, I can provide a little snippet that shows how you can go about intercepting the back button click, and reacting on it depending on if the `WebView` has navigation history or not. This could also be coupled with a “soft” back button that you’d need on iOS, by using [UserEvent](https://www.fusetools.com/docs/fuse/userevent).

Hope this helps!

```auto
<Panel ux:Class="SomePage">
    <Router ux:Dependency="router" />

    <WhileCanGoBack NavigationContext="webView" Invert="true">
        <OnBackButton>
            <GoBack NavigationContext="router" />
        </OnBackButton>
    </WhileCanGoBack>

    <WhileCanGoBack NavigationContext="webView">
        <Change router.BackButtonAction="None" />
        <OnBackButton>
            <GoBack TargetNode="webView"/>
            <Reload TargetNode="webView"/>
        </OnBackButton>
    </WhileCanGoBack>

    <NativeViewHost>
        <WebView ux:Name="webView" Url="https://www.google.com/" />
    </NativeViewHost>
</Panel>

```

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://forums.fusetools.com/u/Jason)\
**Post date:** [August 3, 2017, 2:12am UTC](https://forums.fusetools.com/t/refresh-reset-page/6134/5 "2017-08-03T02:12:36Z")

</div>

Worked perfectly, thank you so much.
