Hello everyone,

I have a web browser which is used to display html files that are stored locally. However when I try to use the webBrowser.GoBack() method to navigate back to previous files nothing happens and the webbrowser window continues to display the current file.

Does anyone know of a way I can navigate back through previously accessed files and display them in the webbrowser window by using a 'Back' button?

Thanks in advance for any help.

SubProf

If you're only trying to emulate a click of the back button, don't use C# use Javascript. Add this code to you page:

<button onlick="window.history.go(-1)">Back</button>

Thanks Nvmobius - I'll give it a go.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.