DOM.focusFocuses the given element.
| Name | Type | Description |
|---|---|---|
nodeId (optional) | NodeId | Identifier of the node. |
backendNodeId (optional) | BackendNodeId | Identifier of the backend node. |
objectId (optional) | Runtime.RemoteObjectId | JavaScript object id of the node wrapper. |
{
"id": 1,
"method": "DOM.focus"
}
{
"id": 1,
"result": {}
}
const result = await send('DOM.focus');
console.log(result);