mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / HTML Property
HTML Property
Description

Sets or retrieves the HTML markup of the main Frame.

Property type
Read-write property
Syntax
Visual Basic
Public Property HTML As String
Return Type
HTML markup or XHTML markup depending on Settings.enable_xml_html.
Remarks

During HTML5 Editing, if you are editing a disk-web (an HTML5 file located on your disk and not loaded from a web server), and before setting HTML markup using this property, you should set BaseURL and URL properties.

Example
Private Sub WebKitX1_OnBrowserReady()
    
    On Error Resume Next
    
    ' Restore focus to WebKitX after a command is executed (form a menu or context menu)
    WebKitX1.ExecCommandSetFocus = True
    
    ' Enable mobileFX formatting vs. CEF3 formatting (Recommended)
    WebKitX1.FormatUsingInternalSelectionAPI = True
    
    ' Allow JavaScript download (sometimes scripts such as parallax mess with HTML5 styles)
    WebKitX1.DownloadScripts = False
    mnuDownloadScripts.Checked = False
    
    ' Initial HTML to show (optional)
    
    If LoadFile <> "" Then
        WebKitX1.Open LoadFile
        LoadFile = ""
    Else
        WebKitX1.HTML = "<html><body></body></html>"
    End If
    
    'WebKitX1.Open "file:///my_path/index.html"
    
End Sub
See Also