← Back to DOM domain
DOM.getFrameOwner
Returns iframe node that owns iframe with the given domain.
Domain: DOM
experimental
Parameters
| Name | Type | Description |
frameId | Page.FrameId | |
Returns
| Name | Type | Description |
backendNodeId | BackendNodeId | Resulting node. |
nodeId | NodeId | Id of the node at given coordinates, only when enabled and requested document. |
Example Request
{
"id": 1,
"method": "DOM.getFrameOwner",
"params": {
"frameId": "ABC123DEF456"
}
}
Example Response
{
"id": 1,
"result": {
"backendNodeId": "backendNodeId-value",
"nodeId": 3
}
}
Usage in Node.js
const result = await send('DOM.getFrameOwner', {"frameId": "ABC123DEF456"});
console.log(result);
// {"backendNodeId": "backendNodeId-value", "nodeId": 3}