HtmlPage Class
Silverlight
Permits access to, and manipulation of, the browser's Document Object Model (DOM).
Namespace: System.Windows.Browser
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
The HtmlPage type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | BrowserInformation | Gets general information about the browser, such as name, version, and operating system. |
![]() ![]() | Document | Gets the browser's document object. |
![]() ![]() | IsEnabled | Gets a value that indicates whether the rest of the public surface area of the HTML Bridge feature is enabled. |
![]() ![]() | IsPopupWindowAllowed | Indicates whether pop-up windows are allowed. |
![]() ![]() | Plugin | Gets a reference to the Silverlight plug-in that is defined within an <object> or <embed> tag on the host HTML page. |
![]() ![]() | Window | Gets the browser's window object. |
| Name | Description | |
|---|---|---|
![]() ![]() | PopupWindow | Opens a pop-up window. |
![]() ![]() | RegisterCreateableType | Registers a managed type as available for creation from JavaScript code, through the Content.services.createObject and Content.services.createManagedObject helper methods. |
![]() ![]() | RegisterScriptableObject | Registers a managed object for scriptable access by JavaScript code. |
![]() ![]() | UnregisterCreateableType | Explicitly unregisters a managed type that was previously registered by using the RegisterCreateableType method. |
Two Silverlight classes can be used to access and manipulate the DOM: HtmlPage and HtmlDocument.
When the Silverlight plug-in's enableHtmlAccess property is set to false, any attempt to use the HtmlPage class fails with a NotSupportedException stating that the feature is disabled.
For information about the enableHtmlAccess property, see Security Settings in HTML Bridge.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
