You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


nsIGlobalHistory


This interface allows access to the global history mechanism. It is scriptable.

Methods
addPage

Adds a URL to the global history database.

In the URL passed in, aReferrer can be null, but aDate must be the date to set in the history.

Syntax:

void nsIGlobalHistory::addPage(in string aURL) 

Parameters:

aURL: The URL to be added.

nsresult:

NS_OK if successful.
isVisited

Returns TRUE if a page has been passed into addPage.

Syntax:

boolean isVisited(in string aURL) 

Parameters:

aURL: The URL to check.

Returns:

TRUE if a page has been passed in.
FALSE otherwise.

Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX