mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / GetAttribute Method

CSS3 Selector of the element to read its attribute.

If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.

The attribute name to read.

In This Topic
    GetAttribute Method
    In This Topic
    Description

    Returns an attribute value of an HTML5 Element.

    Syntax
    Visual Basic
    Public Function GetAttribute( _
       ByVal Selector As String, _
       ByVal AttrName As String _
    ) As String
    Parameters
    Selector

    CSS3 Selector of the element to read its attribute.

    If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.

    AttrName

    The attribute name to read.

    Return Type

    String HTML5 attribute value.

    Example
    Function GetClass() As String
        
        GetClass = WebKitX1.GetAttribute("#my_input", "class")
        
    End Function
    private String GetClass()
    {
        return WebKitXCEF31.GetAttribute("#my_input", "class");
    }
    See Also