Skip to content

TWebBrowserControl

Description

Below is a list of the most important properties methods and events for TWebBrowserControl.

Designtime Runtime

HTML template tag

The HTML tag the component can be associated with in an HTML template. Assign the ID attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <IFRAME ID=”UniqueID”></IFRAME>
ElementID UniqueID

Properties for TWebBrowserControl

Property Description
ElementClassName Optionally sets the CSS classname for the map when styling via CSS is used
ElementID Optionally sets the HTML element ID for a HTML element in the form HTML file the component needs to be connected with. When connected, no new object is created but the Delphi class is connected with the existing HTML element in the form HTML file
ReferrerPolicy Sets the preferred referrer policy. Available options are: rfNone, rfNoReferrer, rfNoReferrerWhenDowngrade, rfOrigin, rfOriginWhenCrossOrigin, rfUnsafeUrl
Sandbox Sets which browse features are allowed.
Available options are: stAllowForms,
stAllowModals, stAllowOrientationLock,
stAllowPointerLock, stAllowPopups,
stAllowPopupsToEscapeSandbox,
stAllowPresentation, stAllowSameOrigin,
stAllowScripts, stAllowTopNavigation,
stAllowTopNavigationByUserActivation
URL Sets the URL to display

Methods for TWebBrowserControl

Method Description
CurrentURL: string Gets the current URL the browser navigated to
Event Description
OnLoad Event triggered when the content of the URL navigated to was loaded