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