WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIGlobalHistory2

IID:cf777d42-1270-4b34-be7b-2931c93feda5
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void addURI ( nsIURI URI , PRBool redirect , PRBool toplevel , nsIURI referrer ) PRBool isVisited ( nsIURI URI ) void setPageTitle ( nsIURI URI , AString title )

void addURI ( nsIURI URI , PRBool redirect , PRBool toplevel , nsIURI referrer )

Add a URI to global history

Arguments:
URI: the URI of the page
redirect: whether the URI was redirected to another location; this is 'true' for the original URI which is redirected.
toplevel: whether the URI is loaded in a top-level window
referrer: the URI of the referring page

PRBool isVisited ( nsIURI URI )

Checks to see whether the given URI is in history.

Arguments:
URI: the uri to the page
Returns:
true if a URI has been visited

void setPageTitle ( nsIURI URI , AString title )

Set the page title for the given uri. URIs that are not already in global history will not be added.

Arguments:
URI: the URI for which to set to the title
title: the page title

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com