Microsoft Silverlight will reach end of support after October 2021. Learn more.
Permits access to, and manipulation of, the browser's Document Object Model (DOM).
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
'Declaration Public NotInheritable Class HtmlPage
public static class HtmlPage
The HtmlPage type exposes the following members.
|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.|
|PopupWindow||Opens a pop-up window.|
|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.
Supported in: 5, 4, 3
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.