OnPageNew Event

See Also         Example         Applies To

Occurs when a new page is created.

Syntax

Private Sub Application_OnPageNew(pPage As PageWindow)

pPage   Required PageWindow. A PageWindow object.

Remarks

When the user creates a new page within a frameset, the OnPageNew event is only fired once for Frames pages—when the page containing the frameset tags is opened. Then FrontPage executes the code that you specified within the event procedure.

Note   The OnPageNew event only fires for the default frameset, even if there are more frames on the page. This event only fires if FrontPage is in Page view. If FrontPage is in any other view, the OnPageNew event won't fire.