LoadHtml Method (WebControl)
- Last UpdatedSep 29, 2026
- 1 minute read
Loads given html. It is more like setting document.body.outerHTML instead of a real load. It doesn't show up in navigation history either. So it is treated much more like "modifying the current document" rather than loading a new document.
'Declaration
Public Sub LoadHtml( _
ByVal html As String, _
ByVal baseAddress As String _
)
public void LoadHtml(
string html,
string baseAddress
)
public:
void LoadHtml(
String^ html,
String^ baseAddress
)
Parameters
- html
- Html to load.
- baseAddress
- Base address. The baseUrl can be used to convert partial path into the full path. For example, the HTML may contain partial path such as 'img src="logo.gif"'. In that case, the browser engine would not be able to construct the full path of the image unless the baseUrl is provided.
Target Platforms:
- Windows 10 Enterprise, IoT Enterprise 2019 LTSC (1809)
- Windows 10 Enterprise 2021 LTSC (21H2)
- Windows 10 IoT Enterprise (Only) 2021 LTSC (21H2)
- Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2
- Windows Server 2019 LTSC (Datacenter, Essentials, Standard)
- Windows Server IoT 2019 LTSC
- Windows Server 2022 LTSC Standard and Datacenter
- Windows Server 2025 LTSC Standard and Datacenter