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

CSS3 Selector of the element to set its attribute.

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

The attribute name to set.

The attribute value to set.

In This Topic
    SetAttribute Method
    In This Topic
    Description

    Sets an attribute value of an HTML5 Element.

    Syntax
    Visual Basic
    Public Sub SetAttribute( _
       ByVal Selector As String, _
       ByVal Name As String, _
       ByVal Value As String _
    ) 
    Parameters
    Selector

    CSS3 Selector of the element to set its attribute.

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

    Name

    The attribute name to set.

    Value

    The attribute value to set.

    Example
    s = InputBox("Set Class", , WebKitX1.GetAttribute(Selector, "class"))
    If s <> "" Then
        WebKitX1.SetAttribute Selector, "class", s
    End If
    See Also