From Xojo Documentation

You are currently browsing the old Xojo documentation site. It will go offline as of October 2, 2023. Please visit the new Xojo documentation site! - you will be redirected shortly...

Class (inherits from WebView)

New in 2010r4

A page of the application. This is the equivalent of a Window in a desktop application.

Closed Opening Shown
ContextualMenuSelected Overflowed
Hidden Resized
AllowTabOrderWrap fa-lock-32.png LastControlIndex Style
ContextualMenu LayoutDirection TabIndex
ControlID fa-lock-32.png LayoutType Title
Enabled Left Tooltip
Height MinimumHeight Top
Indicator MinimumWidth Visible
IsImplicitInstance fa-lock-32.png Name fa-lock-32.png Width

AddControl ExecuteJavaScript Show
Close GotoURL UpdateBrowser
ControlAt ScrollTo
Controls SetFocus


One important difference, of course, is that several pages may be displayed in the same browser window (though not at the same time, of course). But in other respects, a WebPage is very much like a desktop window. In both cases, the state of controls is managed automatically. You will only lose state when you call the Close method of a page or when the application quits. Page state is managed on a per session/per page basis. See the WebSession object. That means two sessions (two users) would each have their own state per page.


Hash Tags (aka anchors or URL fragments) are used to create bookmarks to specific pages or areas of your web apps. This is an example hash tag:


The WebSession.Hashtag property is used to change a hash tag and WebSession.HashtagChanged event is used to know when a hash tag has been changed.

For more information on hash tags, refer to the WebSession class.

See Also

WebSession, WebDialog, WebContainer and Window classes.