HtmlHistory Class

Note: This class is new in the .NET Framework version 2.0.

Manages the list of documents and Web sites the user has visited within the current session.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public sealed class HtmlHistory : IDisposable
public final class HtmlHistory implements IDisposable
public final class HtmlHistory implements IDisposable

The managed HTML Document Object Model (DOM) keeps track of the sites that a user has visited within a given session. Session is defined here as the length of time from when an application hosting the managed HTML DOM starts until the application closes.

When you use the Url property or Navigate method of the WebBrowser control to navigate to a new Web page, Internet Explorer may either retrieve the latest version of that page from the server or display the version currently in the Internet Explorer cache. By contrast, when you use HtmlHistory to navigate forwards and backwards in this stack, Internet Explorer will display the pages from the local computer's cache of downloaded Web content, unless the server indicated that the document's content should expire immediately. For more information on the history list and caching in Internet Explorer, see How To Prevent Caching in Internet Explorer (

The principle method of HtmlHistory is Go, which navigates either to the specified position in the navigation stack or to a new Uniform Resource Locator (URL). The Forward and Back methods navigate down and up the navigation stack, respectively, by the required number of entries.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions