getTagName

Get tag name of a DOM-element found by given selector.

Usage

1
client.getTagName(selector).then(callback);

Parameters

Param Type Details
selector String element with requested tag name

Example

index.html
1
<div id="elem">Lorem ipsum</div>
getTagName.js
1
2
3
client.getTagName('#elem').then(function(tagName) {
console.log(tagName); // outputs: "div"
});

Uses