DOMAttribute

concerns

The DOMAttribute property sets or determines an attribute of a DOM element identified by the ID.

 

Syntax

DOMAttribute(ByVal ElementID As String, ByVal AttributeName As String)

Return value

Type

Description

String

Content of the attribute

Parameter

Use

Name

Type

Passing

Description

Required

ElementID

String

ByVal

ID of the DOM element

Required

AttributeName

String

ByVal

Name of the attribute whose content is to be set or determined

 

Example:

There is an element in the DOM with the ID IDtitle. Then the following command sets the style attribute of the element.

 

Client.WebClient.DOMAttribute("IDTitel", "style") := "font-style:normal;"