Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIWebPageDescriptor

This interface allows content being displayed in one window to be loaded into another window without refetching it from the network.
Inherits from: nsISupports Last changed in Gecko 1.7

Method overview

void loadPage(in nsISupports aPageDescriptor, in unsigned long aDisplayType);

Attributes

Attribute Type Description
currentDescriptor nsISupports Retrieves the page descriptor for the current document. Read only.

Constants

Display type constants

Constant Value Description
DISPLAY_AS_SOURCE 0x0001 Generates an optionally syntax-highlighted (for XML/HTML documents) source of the original page.
DISPLAY_NORMAL 0x0002 Just refetches the existing page. Note that if the descriptor is that of the source of another page, this keeps the source view, but uses the current syntax highlighting preference.

Methods

loadPage()

Tells the object to load the page specified by the page descriptor.

void loadPage(
  in nsISupports aPageDescriptor,
  in unsigned long aDisplayType
);
Parameters
aPageDescriptor
The page descriptor for the page to load.
aDisplayType
The display type to use when displaying the loaded page; see Display type constants for possible values.

Document Tags and Contributors

 Contributors to this page: Sheppy, Neil, trevorh
 Last updated by: Sheppy,